[clang] [llvm] [UBSan] Implement src:*=sanitize for UBSan (PR #140529)
Qinkun Bao via cfe-commits
cfe-commits at lists.llvm.org
Fri May 23 19:22:18 PDT 2025
================
@@ -71,9 +76,9 @@ unsigned SpecialCaseList::Matcher::match(StringRef Query) const {
for (const auto &[Pattern, Pair] : Globs)
if (Pair.first.match(Query))
return Pair.second;
- for (const auto &[Regex, LineNumber] : RegExes)
- if (Regex->match(Query))
- return LineNumber;
+ for (auto it = RegExes.crbegin(); it != RegExes.crend(); ++it)
----------------
qinkunbao wrote:
> checked - assert(RegExes.empty()); here never trigger on those tests
Thanks for the finding. It should be matched by Glob now.
https://github.com/llvm/llvm-project/pull/140529
More information about the cfe-commits
mailing list