aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_hash.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2024-01-02 15:22:44 +0100
committerGitHub <noreply@github.com>2024-01-02 15:22:44 +0100
commit3c7ed34ce93f04f9d8e6d5c4a22f746a5a7c00dc (patch)
treefaeea5bb92432c86104ea0e202e5a12e0845f68a /src/lib/ndpi_hash.c
parent0f4d9f505429d2644dc291deabfb6da77930e44d (diff)
fuzz: improve fuzzing coverage (#2239)
Diffstat (limited to 'src/lib/ndpi_hash.c')
-rw-r--r--src/lib/ndpi_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_hash.c b/src/lib/ndpi_hash.c
index 0a3507d76..c0d653142 100644
--- a/src/lib/ndpi_hash.c
+++ b/src/lib/ndpi_hash.c
@@ -134,7 +134,7 @@ u_int32_t ndpi_hash_string_len(const char *str, u_int len) {
two independent 64-bit linear congruential generators are applied
results are mixed, scrambled and cast to 32-bit
*/
-u_int32_t ndpi_quick_16_byte_hash(u_int8_t *in_16_bytes_long) {
+u_int32_t ndpi_quick_16_byte_hash(const u_int8_t *in_16_bytes_long) {
u_int64_t a = *(u_int64_t*)(in_16_bytes_long + 0);
u_int64_t c = *(u_int64_t*)(in_16_bytes_long + 8);