mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-04-30 16:09:43 +00:00
fuzz: extend fuzzing coverage (#2208)
This commit is contained in:
parent
b3f2b1bb7f
commit
7b5354588b
15 changed files with 282 additions and 37 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue