From 2106b27406be34b777c25c41eb2729e487062bc0 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Wed, 2 Sep 2020 16:53:06 -0400 Subject: [PATCH] lib: ignore over/underflow for jhash2 Signed-off-by: Quentin Young --- lib/jhash.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5