gecko-dev/browser/app/winlauncher/freestanding
Toshihito Kikuchi bd457a84a8 Bug 1587642 - Make the blocklist work when the process heap is not initialized. r=aklotz
`patched_NtMapViewOfSection` uses the process default heap to copy a string.
However, `patched_NtMapViewOfSection` can be invoked even before the process
heap is initialized. One example we found is Windows Defender's EAF, with
which "verifier.dll" is loaded before the process heap is initialized.

This patch adds a check whether the heap is initialized or not in
`patched_NtMapViewOfSection` and `NativeNtBlockSet::Add`. This also minimizes
the usage of the heap, i.e. not copying a string when we block a dll.

Differential Revision: https://phabricator.services.mozilla.com/D51028

--HG--
extra : moz-landing-system : lando
2019-11-15 22:53:49 +00:00
..
DllBlocklist.cpp Bug 1587642 - Make the blocklist work when the process heap is not initialized. r=aklotz 2019-11-15 22:53:49 +00:00
DllBlocklist.h Bug 1542830: Part 2 - Modify launcher process blocklist to collect information about untrusted module loads; r=mhowell 2019-09-23 20:17:10 +00:00
Freestanding.h Bug 1587642 - Make the blocklist work when the process heap is not initialized. r=aklotz 2019-11-15 22:53:49 +00:00
LoaderPrivateAPI.cpp Bug 1587642 - Make the blocklist work when the process heap is not initialized. r=aklotz 2019-11-15 22:53:49 +00:00
LoaderPrivateAPI.h Bug 1587642 - Make the blocklist work when the process heap is not initialized. r=aklotz 2019-11-15 22:53:49 +00:00
ModuleLoadFrame.cpp Bug 1542830: Part 2 - Modify launcher process blocklist to collect information about untrusted module loads; r=mhowell 2019-09-23 20:17:10 +00:00
ModuleLoadFrame.h Bug 1542830: Part 2 - Modify launcher process blocklist to collect information about untrusted module loads; r=mhowell 2019-09-23 20:17:10 +00:00
gen_ntdll_freestanding_lib.py Bug 1542830: Part 3 - Add ntdll_freestanding.lib to freestanding; r=mhowell,froydnj 2019-09-23 20:18:37 +00:00
moz.build Bug 1586358 - Replace existing instances of GENERATED_FILES with references to the GeneratedFile template r=firefox-build-system-reviewers,mshal 2019-10-07 21:15:19 +00:00
ntdll_freestanding.def Bug 1542830: Part 3 - Add ntdll_freestanding.lib to freestanding; r=mhowell,froydnj 2019-09-23 20:18:37 +00:00