diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-12-11 19:24:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-11 19:24:17 +0100 |
commit | 7b5354588bdd91b46f65136d1adae662d1acb516 (patch) | |
tree | 7fe074f16eff9431c7736ae93fb430362d1f65f4 /fuzz/fuzz_filecfg_protocols.c | |
parent | b3f2b1bb7f90c18a7542ab06acdf26318cdfa6fe (diff) |
fuzz: extend fuzzing coverage (#2208)
Diffstat (limited to 'fuzz/fuzz_filecfg_protocols.c')
-rw-r--r-- | fuzz/fuzz_filecfg_protocols.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fuzz/fuzz_filecfg_protocols.c b/fuzz/fuzz_filecfg_protocols.c index efc9cf0ec..e6f296f68 100644 --- a/fuzz/fuzz_filecfg_protocols.c +++ b/fuzz/fuzz_filecfg_protocols.c @@ -1,4 +1,5 @@ #include "ndpi_api.h" +#include "ndpi_private.h" #include "fuzz_common_code.h" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { @@ -35,7 +36,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { ndpi_set_debug_bitmask(ndpi_struct, debug_bitmask); fd = buffer_to_file(data, size); - ndpi_load_protocols_file_fd(ndpi_struct, fd); + load_protocols_file_fd(ndpi_struct, fd); if(fd) fclose(fd); |