Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: src/trusted/service_runtime/sel_main_chrome.c

Issue 10095012: Disable the signal handlers set by AddressSanitizer. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/service_runtime/sel_main_chrome.c
===================================================================
--- src/trusted/service_runtime/sel_main_chrome.c (revision 8264)
+++ src/trusted/service_runtime/sel_main_chrome.c (working copy)
@@ -33,6 +33,10 @@
#include "native_client/src/trusted/service_runtime/sel_qualify.h"
#include "native_client/src/trusted/service_runtime/win/exception_patch/ntdll_patch.h"
+#ifdef ADDRESS_SANITIZER
Mark Seaborn 2012/04/19 16:16:39 Can you add a comment to explain what this is for,
+extern __asan_disable_signal_handlers();
Mark Seaborn 2012/04/19 16:16:39 Surely "void __asan_disable_signal_handlers(void);
+#endif
+
static int const kSrpcFd = 5;
struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void) {
@@ -147,6 +151,9 @@
* channel is set up, and then bail out.
*/
+#ifdef ADDRESS_SANITIZER
+ __asan_disable_signal_handlers();
Mark Seaborn 2012/04/19 16:16:39 Can you add a comment to explain what this is for,
+#endif
/*
* Ensure this operating system platform is supported.
*/
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698