[PATCH] D33471: [asan] Remove allow_user_segv_handler on Windows.
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 23 16:00:29 PDT 2017
vitalybuka created this revision.
Herald added a subscriber: kubamracek.
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.
https://reviews.llvm.org/D33471
Files:
lib/asan/asan_win.cc
Index: lib/asan/asan_win.cc
===================================================================
--- lib/asan/asan_win.cc
+++ lib/asan/asan_win.cc
@@ -80,7 +80,7 @@
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33471.100017.patch
Type: text/x-patch
Size: 639 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170523/dbc59298/attachment.bin>
More information about the llvm-commits
mailing list