Bug 1451859 - Part 2: Add sanitizer coverage to a handful of places relevant to IPC. r=posidron
authorAlex Gaynor <agaynor@mozilla.com>
Thu, 05 Apr 2018 15:48:11 -0400
changeset 421816 1f3916c7d4a2dbd402c7e81a941873a6e8edf360
parent 421815 833710acd427eac8599d31cef71300fcf8d82929
child 421817 5ec69b71684e06bc780fe4227a2a256f40b48784
push id34107
push useraciure@mozilla.com
push dateThu, 07 Jun 2018 21:50:48 +0000
treeherdermozilla-central@ea21bf3e665d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersposidron
bugs1451859
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1451859 - Part 2: Add sanitizer coverage to a handful of places relevant to IPC. r=posidron
accessible/ipc/moz.build
dom/ipc/moz.build
ipc/chromium/chromium-config.mozbuild
ipc/chromium/moz.build
ipc/glue/moz.build
ipc/ipdl/moz.build
netwerk/ipc/moz.build
--- a/accessible/ipc/moz.build
+++ b/accessible/ipc/moz.build
@@ -54,8 +54,11 @@ if CONFIG['ACCESSIBILITY']:
         '/accessible/base',
         '/accessible/generic',
         '/accessible/xpcom',
     ]
 
 include('/ipc/chromium/chromium-config.mozbuild')
 
 FINAL_LIBRARY = 'xul'
+
+# Add libFuzzer configuration directives
+include('/tools/fuzzing/libfuzzer-config.mozbuild')
--- a/dom/ipc/moz.build
+++ b/dom/ipc/moz.build
@@ -178,8 +178,11 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc')
 
 if CONFIG['NIGHTLY_BUILD']:
     DEFINES['ASYNC_CONTENTPROC_LAUNCH'] = True
 
 if CONFIG['FUZZING'] and CONFIG['FUZZING_INTERFACES']:
     TEST_DIRS += [
         'fuzztest'
     ]
+
+# Add libFuzzer configuration directives
+include('/tools/fuzzing/libfuzzer-config.mozbuild')
--- a/ipc/chromium/chromium-config.mozbuild
+++ b/ipc/chromium/chromium-config.mozbuild
@@ -64,8 +64,12 @@ else:
     elif CONFIG['OS_ARCH'] == 'OpenBSD':
         DEFINES.update({
             'OS_OPENBSD': 1,
             'OS_BSD': 1,
         })
 
     else:
         DEFINES['OS_LINUX'] = 1
+
+
+# Add libFuzzer configuration directives
+include('/tools/fuzzing/libfuzzer-config.mozbuild')
--- a/ipc/chromium/moz.build
+++ b/ipc/chromium/moz.build
@@ -146,8 +146,11 @@ include('/ipc/chromium/chromium-config.m
 FINAL_LIBRARY = 'xul'
 
 DIRS += [
     'atomics',
 ]
 
 if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
     CXXFLAGS += ['-Wno-error=shadow']
+
+# Add libFuzzer configuration directives
+include('/tools/fuzzing/libfuzzer-config.mozbuild')
--- a/ipc/glue/moz.build
+++ b/ipc/glue/moz.build
@@ -226,8 +226,11 @@ if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_
         '/security/sandbox/win/src/sandboxbroker',
     ]
 
 if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
     CXXFLAGS += ['-Wno-shadow']
 
 if CONFIG['NIGHTLY_BUILD']:
     DEFINES['ASYNC_CONTENTPROC_LAUNCH'] = True
+
+# Add libFuzzer configuration directives
+include('/tools/fuzzing/libfuzzer-config.mozbuild')
--- a/ipc/ipdl/moz.build
+++ b/ipc/ipdl/moz.build
@@ -11,8 +11,11 @@ include('/ipc/chromium/chromium-config.m
 # Generated by ipdl.py
 SOURCES += ['!IPCMessageTypeName.cpp']
 
 FINAL_LIBRARY = 'xul'
 
 # We #include some things in the dom/plugins/ directory that rely on
 # toolkit libraries.
 CXXFLAGS += CONFIG['TK_CFLAGS']
+
+# Add libFuzzer configuration directives
+include('/tools/fuzzing/libfuzzer-config.mozbuild')
--- a/netwerk/ipc/moz.build
+++ b/netwerk/ipc/moz.build
@@ -46,8 +46,11 @@ FINAL_LIBRARY = 'xul'
 
 LOCAL_INCLUDES += [
     '/caps',
     '/dom/base',
     '/modules/libjar',
     '/netwerk/base',
     '/netwerk/protocol/http',
 ]
+
+# Add libFuzzer configuration directives
+include('/tools/fuzzing/libfuzzer-config.mozbuild')