Skip to content

Commit

Permalink
[sanitizer_common] Fix StripFunctionName() on Windows
Browse files Browse the repository at this point in the history
Also implement StripFunctionName() on Windows to properly strip
interceptor prefixes.

Reported-by: https://lab.llvm.org/buildbot#builders/127/builds/48810
  • Loading branch information
melver committed May 25, 2023
1 parent 46c32af commit 4c46c7c
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -32,6 +32,9 @@ const char *StripFunctionName(const char *function) {
if (SANITIZER_APPLE) {
if (const char *s = try_strip("wrap_"))
return s;
} else if (SANITIZER_WINDOWS) {
if (const char *s = try_strip("__asan_wrap_"))
return s;
} else {
if (const char *s = try_strip("__interceptor_"))
return s;
Expand Down

0 comments on commit 4c46c7c

Please sign in to comment.