gecko-dev/xpcom/build
Mike Hommey 92c5bff388 Bug 1330533 - Remove argc/argv arguments to XRE_LibFuzzerSetMain. r=decoder
The function given to XRE_LibFuzzerSetMain is called from somewhere that
does have access to argc/argv already, so we can avoid passing them
to XRE_LibFuzzerSetMain.

This actually might fix subtle issues with argc/argv not really matching
reality when calling the LibFuzzerMain function in the current code:
some arguments are handled before the call, and both argc and argv are
modified from within XRE_main, but the values stored for the
LibFuzzerMain call still are the original ones.

Argv being a pointer, and it not being reallocated, the value stored for
the LibFuzzerMain call points to the changed one, but argc, being an
integer, is not modified accordingly.

In fact, it's actually worse, because while the Gecko code doesn't
reallocate argv, gtk_main might. So if some GTK flag is passed on the
command line, there's also a possibility that the LibFuzzerMain function
will do a use-after-free.

So all in all, it's just better to use the set of modified argc/argv
from XRE_main instead of storing them from main().

--HG--
extra : rebase_source : 92b89909eab0fc2f67ce372b959bb0e3ed12cd2b
2017-01-12 11:59:37 +09:00
..
BinaryPath.h
FileLocation.cpp Bug 1317954 - Replace default bodies of special member functions with = default; in xpcom/. r=froydnj 2016-11-16 14:25:31 +02:00
FileLocation.h
IOInterposer.cpp Bug 1298676 - part 1 - add IOInterposer::Enable(); r=aklotz 2017-01-10 16:31:25 -05:00
IOInterposer.h Bug 1298676 - part 2 - add an AutoIOInterposerDisable RAII class; r=aklotz 2017-01-10 16:31:25 -05:00
IOInterposerPrivate.h
LateWriteChecks.cpp Bug 1322735 - Remove OBSERVE_LATE_WRITES define. r=glandium 2016-12-20 15:29:05 -08:00
LateWriteChecks.h
mach_override.c
mach_override.h
MainThreadIOLogger.cpp Merge inbound to m-c. a=merge 2017-01-07 11:22:47 -05:00
MainThreadIOLogger.h
moz.build Bug 1306327 - Remove everything related to frozen functions from the XPCOM glue. r=bsmedberg 2017-01-10 17:12:43 +09:00
NSPRInterposer.cpp Bug 1317954 - Use C++11's override and remove virtual where applicable in xpcom/. r=froydnj 2016-11-16 14:27:07 +02:00
NSPRInterposer.h
nsWindowsDllInterceptor.h Bug 1314183: Ensure that nsWindowsDllInterceptor does not accept RIP-relative displacements on amd64; r=dmajor 2016-11-02 10:42:07 -06:00
nsXPCOM.h Bug 1067547 - unify ScopedLogging implementations and use in nsEmbedFunctions; r=bsmedberg 2016-09-26 11:06:38 -06:00
nsXPCOMCID.h Bug 1329718 - remove nsISupportsVoid and associated machinery; r=erahm 2017-01-10 16:31:48 -05:00
nsXPCOMCIDInternal.h
nsXPCOMPrivate.h Bug 1306327 - Remove everything related to frozen functions from the XPCOM glue. r=bsmedberg 2017-01-10 17:12:43 +09:00
nsXPCOMStrings.cpp Bug 1305422 - part 11 - don't call size_forward in nsXPCOMStrings.cpp; r=erahm 2016-09-29 22:33:57 -04:00
nsXULAppAPI.h Bug 1330533 - Remove argc/argv arguments to XRE_LibFuzzerSetMain. r=decoder 2017-01-12 11:59:37 +09:00
Omnijar.cpp
Omnijar.h
perfprobe.cpp
perfprobe.h
PoisonIOInterposer.h
PoisonIOInterposerBase.cpp
PoisonIOInterposerMac.cpp
PoisonIOInterposerStub.cpp
PoisonIOInterposerWin.cpp
ServiceList.h Bug 527003 - separating XPCOM parts from nsAccessibilityService. Removing a11y service in favour of using nsAccessibilityService directly. Adding support for a11y service shutdown. r=surkov 2016-08-08 20:51:39 -04:00
Services.cpp Bug 527003 - separating XPCOM parts from nsAccessibilityService. Removing a11y service in favour of using nsAccessibilityService directly. Adding support for a11y service shutdown. r=surkov 2016-08-08 20:51:39 -04:00
Services.h
xpcom_alpha.def
XPCOM.h Bug 1315812 - Mark nsISupportsArray, nsICollection, nsIEnumerator as deprecated. r=froydnj 2016-11-10 13:15:33 -08:00
XPCOMInit.cpp Bug 1329718 - remove nsISupportsVoid and associated machinery; r=erahm 2017-01-10 16:31:48 -05:00
XPCOMModule.inc Bug 1329718 - remove nsISupportsVoid and associated machinery; r=erahm 2017-01-10 16:31:48 -05:00
XREAppData.h Bug 1306327 - Move reading application.ini to XRE_main. r=bsmedberg 2017-01-10 16:43:23 +09:00
XREChildData.h Bug 1035125 Part 8: Pass sandboxing pointers through XRE_InitChildProcess instead of linking to more functions in xul. r=aklotz,glandium 2016-05-15 16:35:22 +01:00
xrecore.h Bug 1306329 - Stop exporting XPCOM and XUL symbols. r=glandium 2016-12-02 12:55:34 -05:00
XREShellData.h Bug 1035125 Part 9: Link Chromium sandbox into firefox.exe instead of having a separate DLL. r=aklotz,glandium 2016-05-15 16:41:40 +01:00