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

Unified Diff: chrome/app/chrome_exe_main_gtk.cc

Issue 10823038: Set the default ASan options for the Official Chrome build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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: chrome/app/chrome_exe_main_gtk.cc
===================================================================
--- chrome/app/chrome_exe_main_gtk.cc (revision 153453)
+++ chrome/app/chrome_exe_main_gtk.cc (working copy)
@@ -10,6 +10,19 @@
// order to make it easy to update the app from GoogleUpdate. We don't need
// that extra layer with on linux.
+#if defined(ADDRESS_SANITIZER) && defined(GOOGLE_CHROME_BUILD)
+const char *kAsanDefaultOptions = "quarantine_size=1048576";
+
+// Override the default ASan options for the Google Chrome executable.
+// __asan_default_options should not be instrumented, because it is called
+// before ASan is initialized.
+extern "C"
+__attribute__((no_address_safety_analysis))
+const char *__asan_default_options() {
+ return kAsanDefaultOptions;
+}
+#endif
+
extern "C" {
int ChromeMain(int argc, const char** argv);
}
« 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