Skip to content

Commit fcf1cfa

Browse files
padriffyln
andauthored
Update compiler-rt/test/asan/TestCases/Darwin/suppressions-sandbox.cpp
Co-authored-by: Julian Lettner <[email protected]>
1 parent f3f7543 commit fcf1cfa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-rt/test/asan/TestCases/Darwin/suppressions-sandbox.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
#include <CoreFoundation/CoreFoundation.h>
1515

16-
// Use a noinline + disable_tail_calls wrapper function to suppress to stabilize test.
16+
// Disable optimizations to ensure that this function appears on the stack trace so our
17+
// configured suppressions `interceptor_via_fun:createCFString` can take effect.
1718
__attribute__((noinline, disable_tail_calls)) CFStringRef
1819
createCFString(const unsigned char *bytes, CFIndex length) {
1920
return CFStringCreateWithBytes(kCFAllocatorDefault, bytes, length,

0 commit comments

Comments
 (0)