[compiler-rt] r174510 - [ASan] fix the interceptor for siglongjmp. As we're using dylib interposition, we must intercept both siglongjmp and longjmp on Darwin.
Alexander Potapenko
glider at google.com
Wed Feb 6 07:45:44 PST 2013
Author: glider
Date: Wed Feb 6 09:45:43 2013
New Revision: 174510
URL: http://llvm.org/viewvc/llvm-project?rev=174510&view=rev
Log:
[ASan] fix the interceptor for siglongjmp. As we're using dylib interposition, we must intercept both siglongjmp and longjmp on Darwin.
Modified:
compiler-rt/trunk/lib/asan/asan_intercepted_functions.h
Modified: compiler-rt/trunk/lib/asan/asan_intercepted_functions.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_intercepted_functions.h?rev=174510&r1=174509&r2=174510&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_intercepted_functions.h (original)
+++ compiler-rt/trunk/lib/asan/asan_intercepted_functions.h Wed Feb 6 09:45:43 2013
@@ -67,9 +67,7 @@ using __sanitizer::uptr;
# define ASAN_INTERCEPT_SIGNAL_AND_SIGACTION 0
#endif
-// On Darwin siglongjmp tailcalls longjmp, so we don't want to intercept it
-// there.
-#if !defined(_WIN32) && !defined(__APPLE__)
+#if !defined(_WIN32)
# define ASAN_INTERCEPT_SIGLONGJMP 1
#else
# define ASAN_INTERCEPT_SIGLONGJMP 0
More information about the llvm-commits
mailing list