[llvm-branch-commits] [UBSan][Ignorelist] Expanding =sanitize to global. (PR #142077)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu May 29 18:50:21 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Qinkun Bao (qinkunbao)
<details>
<summary>Changes</summary>
See https://github.com/llvm/llvm-project/issues/139128
If multiple entries match the source, than the latest entry takes the
precedence.`
---
Full diff: https://github.com/llvm/llvm-project/pull/142077.diff
1 Files Affected:
- (modified) clang/lib/Basic/NoSanitizeList.cpp (+1-1)
``````````diff
diff --git a/clang/lib/Basic/NoSanitizeList.cpp b/clang/lib/Basic/NoSanitizeList.cpp
index 240a7f9693e21..25863117fb848 100644
--- a/clang/lib/Basic/NoSanitizeList.cpp
+++ b/clang/lib/Basic/NoSanitizeList.cpp
@@ -44,7 +44,7 @@ bool NoSanitizeList::containsPrefix(SanitizerMask Mask, StringRef Prefix,
bool NoSanitizeList::containsGlobal(SanitizerMask Mask, StringRef GlobalName,
StringRef Category) const {
- return SSCL->inSection(Mask, "global", GlobalName, Category);
+ return containsPrefix(Mask, "global", GlobalName, Category);
}
bool NoSanitizeList::containsType(SanitizerMask Mask, StringRef MangledTypeName,
``````````
</details>
https://github.com/llvm/llvm-project/pull/142077
More information about the llvm-branch-commits
mailing list