From: Quentin Young Date: Wed, 2 Sep 2020 20:53:06 +0000 (-0400) Subject: lib: ignore over/underflow for jhash2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=2106b27406be34b777c25c41eb2729e487062bc0;p=matthieu%2Ffrr.git lib: ignore over/underflow for jhash2 Signed-off-by: Quentin Young --- diff --git a/lib/jhash.c b/lib/jhash.c index 4342fbb804..2627d6bfa9 100644 --- a/lib/jhash.c +++ b/lib/jhash.c @@ -128,6 +128,7 @@ uint32_t jhash(const void *key, uint32_t length, uint32_t initval) * The length parameter here is the number of uint32_ts in the key. */ uint32_t jhash2(const uint32_t *k, uint32_t length, uint32_t initval) + __attribute__((no_sanitize("unsigned-integer-overflow"))) { uint32_t a, b, c, len;