MCPcopy Create free account
hub / github.com/apache/trafficserver / LLVMFuzzerTestOneInput

Function LLVMFuzzerTestOneInput

tests/fuzzing/fuzz_http3frame.cc:48–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48extern "C" int
49LLVMFuzzerTestOneInput(const uint8_t *input_data, size_t size_data)
50{
51 if (size_data < kMinInputLength || size_data > kMaxInputLength) {
52 return 1;
53 }
54
55 cmd_disable_pfreelist = true;
56
57 static bool Initialized = DoInitialization();
58
59 MIOBuffer *input1 = new_MIOBuffer(BUFFER_SIZE_INDEX_128);
60 input1->write(input_data, size_data);
61 IOBufferReader *input_reader1 = input1->alloc_reader();
62
63 Http3FrameFactory frame_factory;
64 frame_factory.fast_create(*input_reader1);
65
66 free_MIOBuffer(input1);
67
68 return 0;
69}

Callers

nothing calls this directly

Calls 5

DoInitializationFunction · 0.85
free_MIOBufferFunction · 0.85
alloc_readerMethod · 0.80
fast_createMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected