From 40922655f64b80fa8139b11b2d8aedb893c8eef3 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Mon, 1 Sep 2025 09:20:52 +0100 Subject: [PATCH] Further attempt at Coverity Scan overflow_const suppression --- deps/uthash.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deps/uthash.h b/deps/uthash.h index cb01b9e5..9c8cb2bd 100644 --- a/deps/uthash.h +++ b/deps/uthash.h @@ -633,14 +633,23 @@ do { #define HASH_JEN_MIX(a,b,c) \ do { \ + /* coverity[overflow_const] - intentional wrapping in Jenkins hash */ \ a -= b; a -= c; a ^= ( c >> 13 ); \ + /* coverity[overflow_const] - intentional wrapping in Jenkins hash */ \ b -= c; b -= a; b ^= ( a << 8 ); \ + /* coverity[overflow_const] - intentional wrapping in Jenkins hash */ \ c -= a; c -= b; c ^= ( b >> 13 ); \ + /* coverity[overflow_const] - intentional wrapping in Jenkins hash */ \ a -= b; a -= c; a ^= ( c >> 12 ); \ + /* coverity[overflow_const] - intentional wrapping in Jenkins hash */ \ b -= c; b -= a; b ^= ( a << 16 ); \ + /* coverity[overflow_const] - intentional wrapping in Jenkins hash */ \ c -= a; c -= b; c ^= ( b >> 5 ); \ + /* coverity[overflow_const] - intentional wrapping in Jenkins hash */ \ a -= b; a -= c; a ^= ( c >> 3 ); \ + /* coverity[overflow_const] - intentional wrapping in Jenkins hash */ \ b -= c; b -= a; b ^= ( a << 10 ); \ + /* coverity[overflow_const] - intentional wrapping in Jenkins hash */ \ c -= a; c -= b; c ^= ( b >> 15 ); \ } while (0)