Bug 1493845: Disable cross-process DLL blocklist in ASAN builds; r=mhowell

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Aaron Klotz 2018-09-25 15:00:03 +00:00
Родитель 816dd96825
Коммит e11485f17c
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -36,7 +36,13 @@ static bool
PostCreationSetup(HANDLE aChildProcess, HANDLE aChildMainThread,
const bool aIsSafeMode)
{
// The launcher process's DLL blocking code is incompatible with ASAN because
// it is able to execute before ASAN itself has even initialized.
#if defined(MOZ_ASAN)
return true;
#else
return mozilla::InitializeDllBlocklistOOP(aChildProcess);
#endif // defiend(MOZ_ASAN)
}
#if !defined(PROCESS_CREATION_MITIGATION_POLICY_IMAGE_LOAD_PREFER_SYSTEM32_ALWAYS_ON)