Skip to content

Commit dcd9f49

Browse files
authored
[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 #81677 that can be applied separately (and is actually not critical for that PR)
1 parent 0fae453 commit dcd9f49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@ static bool FrameIsInternal(const SymbolizedStack *frame) {
3939
internal_strstr(file, "/include/c++/") ||
4040
internal_strstr(file, "/include/g++")))
4141
return true;
42+
if (file && internal_strstr(file, "\\compiler-rt\\lib\\"))
43+
return true;
4244
if (module && (internal_strstr(module, "libclang_rt.")))
4345
return true;
46+
if (module && (internal_strstr(module, "clang_rt.")))
47+
return true;
4448
return false;
4549
}
4650

0 commit comments

Comments
 (0)