diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-05-29 16:53:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-29 16:53:11 +0200 |
commit | 46ff0691176f9c33a7ea4838b197568e2bd84c39 (patch) | |
tree | 1cdcb25139cd5ca876c32b961c038aa41af23a99 /fuzz | |
parent | 7ce14da0c8c06967013503187081fa3a146ab8bb (diff) |
ndpiReader: improve printing of payload statistics (#1989)
Add a basic unit test
Fix an endianess issue
Diffstat (limited to 'fuzz')
-rw-r--r-- | fuzz/fuzz_ndpi_reader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fuzz/fuzz_ndpi_reader.c b/fuzz/fuzz_ndpi_reader.c index f210611a4..a91becccc 100644 --- a/fuzz/fuzz_ndpi_reader.c +++ b/fuzz/fuzz_ndpi_reader.c @@ -24,7 +24,7 @@ int malloc_size_stats = 0; int max_malloc_bins = 14; struct ndpi_bin malloc_bins; /* unused */ -extern void ndpi_report_payload_stats(int print); +extern void ndpi_report_payload_stats(FILE *out); #ifdef CRYPT_FORCE_NO_AESNI extern int force_no_aesni; @@ -152,7 +152,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { ndpi_free(workflow->ndpi_flows_root); /* Free payload analyzer data, without printing */ if(enable_payload_analyzer) - ndpi_report_payload_stats(0); + ndpi_report_payload_stats(NULL); return 0; } |