From 3a807e357f6575ea1e290ed122ee05504f109dae Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 24 May 2017 07:17:27 +0000 Subject: [asan] Remove allow_user_segv_handler on Windows. Summary: This flags is not covered by tests on Windows and looks like it's implemented incorrectly. Switching its default breaks some tests. Taking into account that related handle_segv flag is not supported on Windows it's safer to remove it until we commit to support it. Reviewers: eugenis, zturner, rnk Subscribers: kubamracek, llvm-commits Differential Revision: https://reviews.llvm.org/D33471 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@303728 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/asan/asan_win.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/asan/asan_win.cc b/lib/asan/asan_win.cc index 4ab535c42..26db32465 100644 --- a/lib/asan/asan_win.cc +++ b/lib/asan/asan_win.cc @@ -80,7 +80,7 @@ static long WINAPI SEHHandler(EXCEPTION_POINTERS *info) { INTERCEPTOR_WINAPI(LPTOP_LEVEL_EXCEPTION_FILTER, SetUnhandledExceptionFilter, LPTOP_LEVEL_EXCEPTION_FILTER ExceptionFilter) { CHECK(REAL(SetUnhandledExceptionFilter)); - if (ExceptionFilter == &SEHHandler || common_flags()->allow_user_segv_handler) + if (ExceptionFilter == &SEHHandler) return REAL(SetUnhandledExceptionFilter)(ExceptionFilter); // We record the user provided exception handler to be called for all the // exceptions unhandled by asan. -- cgit v1.2.3