clang-format

This commit is contained in:
Tatsuhiro Tsujikawa 2022-08-10 16:57:01 +09:00
parent 1bb4877976
commit f2c793c75b
1 changed files with 4 additions and 5 deletions

View File

@ -12,10 +12,10 @@ extern "C" {
static nghttp2_nv fuzz_make_nv(std::string s1, std::string s2) { static nghttp2_nv fuzz_make_nv(std::string s1, std::string s2) {
nghttp2_nv nv; nghttp2_nv nv;
uint8_t *n = (uint8_t*) malloc(s1.size()); uint8_t *n = (uint8_t *)malloc(s1.size());
memcpy(n, s1.c_str(), s1.size()); memcpy(n, s1.c_str(), s1.size());
uint8_t *v = (uint8_t*) malloc(s2.size()); uint8_t *v = (uint8_t *)malloc(s2.size());
memcpy(v, s2.c_str(), s2.size()); memcpy(v, s2.c_str(), s2.size());
nv.name = n; nv.name = n;
@ -32,7 +32,7 @@ static void fuzz_free_nv(nghttp2_nv *nv) {
free(nv->value); free(nv->value);
} }
void check_frame_pack_headers(FuzzedDataProvider* data_provider) { void check_frame_pack_headers(FuzzedDataProvider *data_provider) {
nghttp2_hd_deflater deflater; nghttp2_hd_deflater deflater;
nghttp2_hd_inflater inflater; nghttp2_hd_inflater inflater;
nghttp2_headers frame, oframe; nghttp2_headers frame, oframe;
@ -92,7 +92,7 @@ void check_frame_pack_headers(FuzzedDataProvider* data_provider) {
nghttp2_hd_deflate_free(&deflater); nghttp2_hd_deflate_free(&deflater);
} }
void check_frame_push_promise(FuzzedDataProvider* data_provider) { void check_frame_push_promise(FuzzedDataProvider *data_provider) {
nghttp2_hd_deflater deflater; nghttp2_hd_deflater deflater;
nghttp2_hd_inflater inflater; nghttp2_hd_inflater inflater;
nghttp2_push_promise frame, oframe; nghttp2_push_promise frame, oframe;
@ -158,4 +158,3 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
} }
} // extern C } // extern C