aboutsummaryrefslogtreecommitdiff
path: root/fuzz/fuzz_alg_crc32_md5.c
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz/fuzz_alg_crc32_md5.c')
-rw-r--r--fuzz/fuzz_alg_crc32_md5.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fuzz/fuzz_alg_crc32_md5.c b/fuzz/fuzz_alg_crc32_md5.c
index ad8c5d2ff..b449941e2 100644
--- a/fuzz/fuzz_alg_crc32_md5.c
+++ b/fuzz/fuzz_alg_crc32_md5.c
@@ -2,11 +2,17 @@
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
u_char hash[16];
+ struct ndpi_popcount popcount;
/* No memory allocations involved */
+ /* Used for crc32, md5 and popcount algs */
+
ndpi_crc32(data, size);
ndpi_md5(data, size, hash);
+ ndpi_popcount_init(&popcount);
+ ndpi_popcount_count(&popcount, data, size);
+
return 0;
}