From d4a72ad05c672d7aa8b3084c38436a6876d1680f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vio=20J=2E=20Saraiva?= Date: Sat, 5 Oct 2024 13:34:10 +0100 Subject: [PATCH] Fix infinite loop in sbox_compute. Fixes #242 --- common/sbox.h | 1 + 1 file changed, 1 insertion(+) diff --git a/common/sbox.h b/common/sbox.h index e8379011e..bf51f419c 100644 --- a/common/sbox.h +++ b/common/sbox.h @@ -20,6 +20,7 @@ static inline m_uint32_t sbox_compute(m_uint8_t *data,int len) hash ^= sbox_array[*data]; hash *= 3; data++; + len--; } return(hash);