зеркало из https://github.com/mozilla/gecko-dev.git
bd457a84a8
`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 |
||
---|---|---|
.. | ||
freestanding | ||
test | ||
DllBlocklistInit.cpp | ||
DllBlocklistInit.h | ||
ErrorHandler.cpp | ||
ErrorHandler.h | ||
LaunchUnelevated.cpp | ||
LaunchUnelevated.h | ||
LauncherProcessWin.cpp | ||
LauncherProcessWin.h | ||
NtLoaderAPI.cpp | ||
ProcThreadAttributes.h | ||
SameBinary.h | ||
moz.build |