gecko-dev/browser/app/winlauncher
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
..
freestanding Bug 1587642 - Make the blocklist work when the process heap is not initialized. r=aklotz 2019-11-15 22:53:49 +00:00
test Bug 1578895 - Compare NT paths if NtOpenFile failed with STATUS_OBJECT_PATH_NOT_FOUND. r=aklotz 2019-09-23 17:59:42 +00:00
DllBlocklistInit.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
DllBlocklistInit.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
ErrorHandler.cpp Bug 1567605 - Add is_admin_without_uac to the launcher-process-failure ping. r=aklotz 2019-09-09 18:09:22 +00:00
ErrorHandler.h Bug 1576697 - Use LauncherResult in WinHeaderOnlyUtils.h instead of WindowsErrorResult. r=aklotz 2019-09-07 18:17:45 +00:00
LaunchUnelevated.cpp Bug 1572788 - Make nsXULAppInfo::GetUserCanElevate reuse GetElevationType. r=aklotz 2019-10-28 14:53:42 +00:00
LaunchUnelevated.h Bug 1576697 - Use LauncherResult in WinHeaderOnlyUtils.h instead of WindowsErrorResult. r=aklotz 2019-09-07 18:17:45 +00:00
LauncherProcessWin.cpp Bug 1529593 - Make LauncherRegistryInfo delay write to the registry. r=aklotz 2019-10-14 17:14:54 +00:00
LauncherProcessWin.h Bug 1460433: Part 2 - Log launcher process failures to a telemetry ping; r=mhowell 2019-02-25 21:14:07 +00:00
NtLoaderAPI.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
ProcThreadAttributes.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
SameBinary.h Bug 1578895 - Compare NT paths if NtOpenFile failed with STATUS_OBJECT_PATH_NOT_FOUND. r=aklotz 2019-09-23 17:59:42 +00:00
moz.build Bug 1542830: Part 4 - Modify mozglue to use new untrusted modules interfaces; r=mhowell 2019-09-23 20:18:41 +00:00