diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2023-03-12 14:45:14 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2023-03-12 14:45:14 +0100 |
commit | 8c2e508b5ea80e980d882e6a0a115b9e194c4ec4 (patch) | |
tree | 5eb2935f2aff04785bc804d1b782d80a1e251c91 | |
parent | 207ebdfd2a77ed28719d52a142b124abac111d47 (diff) | |
download | libxml2-8c2e508b5ea80e980d882e6a0a115b9e194c4ec4.tar.gz |
gitlab-ci: Enable all "integer" sanitizers
-rw-r--r-- | .gitlab-ci.yml | 2 | ||||
-rw-r--r-- | dict.c | 2 | ||||
-rw-r--r-- | hash.c | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0cf1c045..b547f248 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,7 +39,7 @@ clang:asan: variables: CONFIG: "--without-python" CC: clang - CFLAGS: "-O2 -g -fno-omit-frame-pointer -fsanitize=address,undefined,unsigned-integer-overflow,implicit-conversion -fno-sanitize-recover=all -Wno-error=cast-align" + CFLAGS: "-O2 -g -fno-omit-frame-pointer -fsanitize=address,undefined,integer -fno-sanitize-recover=all -Wno-error=cast-align" UBSAN_OPTIONS: "print_stacktrace=1" ASAN_SYMBOLIZER_PATH: "$CI_PROJECT_DIR/.gitlab-ci/llvm-symbolizer" @@ -354,6 +354,7 @@ found_pool: #ifdef __clang__ ATTRIBUTE_NO_SANITIZE("unsigned-integer-overflow") +ATTRIBUTE_NO_SANITIZE("unsigned-shift-base") #endif static uint32_t xmlDictComputeBigKey(const xmlChar* data, int namelen, int seed) { @@ -389,6 +390,7 @@ xmlDictComputeBigKey(const xmlChar* data, int namelen, int seed) { */ #ifdef __clang__ ATTRIBUTE_NO_SANITIZE("unsigned-integer-overflow") +ATTRIBUTE_NO_SANITIZE("unsigned-shift-base") #endif static unsigned long xmlDictComputeBigQKey(const xmlChar *prefix, int plen, @@ -78,6 +78,7 @@ struct _xmlHashTable { */ #ifdef __clang__ ATTRIBUTE_NO_SANITIZE("unsigned-integer-overflow") +ATTRIBUTE_NO_SANITIZE("unsigned-shift-base") #endif static unsigned long xmlHashComputeKey(xmlHashTablePtr table, const xmlChar *name, @@ -111,6 +112,7 @@ xmlHashComputeKey(xmlHashTablePtr table, const xmlChar *name, #ifdef __clang__ ATTRIBUTE_NO_SANITIZE("unsigned-integer-overflow") +ATTRIBUTE_NO_SANITIZE("unsigned-shift-base") #endif static unsigned long xmlHashComputeQKey(xmlHashTablePtr table, |