diff options
author | nechda <[email protected]> | 2025-02-02 20:52:35 +0300 |
---|---|---|
committer | nechda <[email protected]> | 2025-02-02 21:05:55 +0300 |
commit | 4078b4f040b2db49b3b690eea4d0352e73caffe8 (patch) | |
tree | 37df1b93c50e217309e785a8620366524833ae06 /contrib | |
parent | b376b6fe5994a31f79310fb1e2b28e47dc63db5b (diff) |
[ASAN] Enable detect_odr_violation=2
The ASAN flag for detecting ODR violations has been set to its **++default++** value (2).
commit_hash:7475c1eb748fa0704d3db551189591c87ce5357d
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/libs/clang18-rt/lib/asan/asan_flags.inc | 2 | ||||
-rw-r--r-- | contrib/libs/clang18-rt/patches/disable-odr-violation.patch | 11 |
2 files changed, 1 insertions, 12 deletions
diff --git a/contrib/libs/clang18-rt/lib/asan/asan_flags.inc b/contrib/libs/clang18-rt/lib/asan/asan_flags.inc index 3bdd9c55a38..fad1577d912 100644 --- a/contrib/libs/clang18-rt/lib/asan/asan_flags.inc +++ b/contrib/libs/clang18-rt/lib/asan/asan_flags.inc @@ -147,7 +147,7 @@ ASAN_FLAG(bool, detect_container_overflow, true, "If true, honor the container overflow annotations. See " "https://github.com/google/sanitizers/wiki/" "AddressSanitizerContainerOverflow") -ASAN_FLAG(int, detect_odr_violation, 1, +ASAN_FLAG(int, detect_odr_violation, 2, "If >=2, detect violation of One-Definition-Rule (ODR); " "If ==1, detect ODR-violation only if the two variables " "have different sizes") diff --git a/contrib/libs/clang18-rt/patches/disable-odr-violation.patch b/contrib/libs/clang18-rt/patches/disable-odr-violation.patch deleted file mode 100644 index 282e73faa6a..00000000000 --- a/contrib/libs/clang18-rt/patches/disable-odr-violation.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- contrib/libs/clang18-rt/lib/asan/asan_flags.inc (index) -+++ contrib/libs/clang18-rt/lib/asan/asan_flags.inc (working tree) -@@ -147,7 +147,7 @@ ASAN_FLAG(bool, detect_container_overflow, true, - "If true, honor the container overflow annotations. See " - "https://github.com/google/sanitizers/wiki/" - "AddressSanitizerContainerOverflow") --ASAN_FLAG(int, detect_odr_violation, 2, -+ASAN_FLAG(int, detect_odr_violation, 0, - "If >=2, detect violation of One-Definition-Rule (ODR); " - "If ==1, detect ODR-violation only if the two variables " - "have different sizes") |