[compiler-rt] dcd9f49 - [sanitizer][windows] report symbols in clang_rt. or \compiler-rt\lib\ as internal. (#84971)

via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 12 17:47:22 PDT 2024


Author: Charlie Barto
Date: 2024-03-12T17:45:00-07:00
New Revision: dcd9f49c2214891e3e0faffa70cf1a082434592a

URL: https://github.com/llvm/llvm-project/commit/dcd9f49c2214891e3e0faffa70cf1a082434592a
DIFF: https://github.com/llvm/llvm-project/commit/dcd9f49c2214891e3e0faffa70cf1a082434592a.diff

LOG: [sanitizer][windows] report symbols in clang_rt. or \compiler-rt\lib\ as internal. (#84971)

This is the windows equivalent to the existing filters.

Work from https://github.com/llvm/llvm-project/pull/81677 that can be
applied separately (and is actually not critical for that PR)

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report.cpp
index f6b157c07c6557..ffbaf1468ec8ff 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report.cpp
@@ -39,8 +39,12 @@ static bool FrameIsInternal(const SymbolizedStack *frame) {
                internal_strstr(file, "/include/c++/") ||
                internal_strstr(file, "/include/g++")))
     return true;
+  if (file && internal_strstr(file, "\\compiler-rt\\lib\\"))
+    return true;
   if (module && (internal_strstr(module, "libclang_rt.")))
     return true;
+  if (module && (internal_strstr(module, "clang_rt.")))
+    return true;
   return false;
 }
 


        


More information about the llvm-commits mailing list