Skip to content

Commit

Permalink
Merge branch 'master' into debug-ci-sanitisers
Browse files Browse the repository at this point in the history
  • Loading branch information
ojwb committed Mar 15, 2024
2 parents 65aa306 + ed953f1 commit 603ece1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define HASH_PRIME 29363

#ifdef __clang__
[[clang::no_sanitize("unsigned-integer-overflow")]]
__attribute__((no_sanitize("unsigned-integer-overflow")))
#endif
int
hash_string(const char *p)
Expand All @@ -39,7 +39,7 @@ hash_string(const char *p)
}

#ifdef __clang__
[[clang::no_sanitize("unsigned-integer-overflow")]]
__attribute__((no_sanitize("unsigned-integer-overflow")))
#endif
int
hash_lc_string(const char *p)
Expand All @@ -52,7 +52,7 @@ hash_lc_string(const char *p)
}

#ifdef __clang__
[[clang::no_sanitize("unsigned-integer-overflow")]]
__attribute__((no_sanitize("unsigned-integer-overflow")))
#endif
int
hash_data(const char *p, size_t len)
Expand Down

0 comments on commit 603ece1

Please sign in to comment.