We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4190398 commit 92364e4Copy full SHA for 92364e4
compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp
@@ -26,14 +26,17 @@ bool ignore_free = false;
26
27
extern "C" {
28
WEAK_ON_APPLE void __sanitizer_free_hook(const volatile void *ptr) {
29
- if (ptr == glob_ptr)
+ if (ptr == glob_ptr) {
30
fprintf(stderr, "Free Hook\n");
31
+ fflush(stderr);
32
+ }
33
}
34
35
WEAK_ON_APPLE int __sanitizer_ignore_free_hook(const volatile void *ptr) {
36
if (ptr != glob_ptr)
37
return 0;
38
fprintf(stderr, ignore_free ? "Free Ignored\n" : "Free Respected\n");
39
40
return ignore_free;
41
42
} // extern "C"
0 commit comments