]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: ignore over/underflow for jhash2
authorQuentin Young <qlyoung@nvidia.com>
Wed, 2 Sep 2020 20:53:06 +0000 (16:53 -0400)
committerQuentin Young <qlyoung@nvidia.com>
Mon, 15 Nov 2021 22:12:33 +0000 (17:12 -0500)
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
lib/jhash.c

index 4342fbb804361a43d928cc1a612ccec0a52380e1..2627d6bfa9232b3c4f93889e326282930d7ef97a 100644 (file)
@@ -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;