зеркало из https://github.com/mozilla/gecko-dev.git
d77b5bdf35
The earlier fix ea452bb92e6a proved the executable's imagebase in a child process is not always the same as the local imagebase. This patch applies the new approach to retieve the imagebase from a handle to all channels. Interestingly, we observed the launcher failures at `VirtualProtectEx` only when launching a sandboxed process, not when launching the browser process. In the long term, we may need to take care of all `WriteProcessMemory` calls for a child process for greater safety, but given that observation, this patch only updates `RestoreImportDirectory` and `InitializeDllBlocklistOOP`. Differential Revision: https://phabricator.services.mozilla.com/D90316 |
||
---|---|---|
.. | ||
src | ||
SandboxInitialization.cpp | ||
SandboxInitialization.h |