mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-04-30 16:09:43 +00:00
Add some fuzzers to test other data structures. (#1870)
Start using a dictionary for fuzzing (see: https://llvm.org/docs/LibFuzzer.html#dictionaries). Remove some dead code. Fuzzing with debug enabled is not usually a great idea (from performance POV). Keep the code since it might be useful while debugging.
This commit is contained in:
parent
29c5cc39fb
commit
9fc724de5a
184 changed files with 436 additions and 60 deletions
|
|
@ -28,7 +28,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
|||
u_int32_t first_int, version = 0;
|
||||
|
||||
if(ndpi_info_mod == NULL) {
|
||||
fuzz_init_detection_module(&ndpi_info_mod, 0);
|
||||
fuzz_init_detection_module(&ndpi_info_mod);
|
||||
|
||||
flow = ndpi_calloc(1, SIZEOF_FLOW_STRUCT);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue