Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorJean-Michaël Celerier2025-07-02 07:30:36 -0400
committerGitHub2025-07-02 13:30:36 +0200
commitd134b0cae3033c4ddc027fae6f76c66e8b0a6a73 (patch)
treed805d9808326b70ac6c71094277c7b6ea259a33f /tests
parentceed26842b3b3f93523998f7adb672672c7c2d8f (diff)
downloadcatch3-d134b0cae3033c4ddc027fae6f76c66e8b0a6a73.tar.gz
clang: do not issue bogus warnings about integer manipulation in hash functions with fsanitize=undefined/integer (#2965)
With -fsanitize=integer every over/under-flowing integer manipulation triggers a warning. This is extremely useful as it allows to find some non-obvious bugs such as for(size_t i = 0; i < N - 1; i++) { ... } But it comes with a lot of false positives, for instance with every hash function doing shifting on unsigned integer. Random number generators are also often detected with this sanitizer. This marks a few of these functions as safe in this case. Co-authored-by: Martin Hořeňovský <martin.horenovsky@gmail.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions