diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-07-18 07:41:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-18 07:41:56 +0200 |
commit | 3edfad01a1bb22b33bd5bafa0ceeb13e27f03e67 (patch) | |
tree | 6236e68075678a76a402e37f0ff09e5e273faf13 /src/lib/ndpi_analyze.c | |
parent | 09548bb7cf661f42cc496c412ccfd62a864f5029 (diff) |
fuzz: extend fuzzing coverage (#2052)
Added/merged some traces.
Improved Socks identification
Diffstat (limited to 'src/lib/ndpi_analyze.c')
-rw-r--r-- | src/lib/ndpi_analyze.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ndpi_analyze.c b/src/lib/ndpi_analyze.c index 62d14fdd4..f7f9784b6 100644 --- a/src/lib/ndpi_analyze.c +++ b/src/lib/ndpi_analyze.c @@ -1760,6 +1760,7 @@ struct ndpi_cm_sketch *ndpi_cm_sketch_init(u_int16_t num_hashes) { #endif if(num_hashes < 2) num_hashes = 2; + num_hashes = ndpi_nearest_power_of_two(num_hashes); sketch->num_hashes = num_hashes; sketch->num_hash_buckets = num_hashes * NDPI_COUNT_MIN_SKETCH_NUM_BUCKETS; |