Skip to content
Snippets Groups Projects
Verified Commit 3b772262 authored by Dan Ballard's avatar Dan Ballard Committed by Pier Angelo Vendrame
Browse files

Bug 41149: Re-enable DLL injection protection in all builds not just nightlies

parent 2d34dea1
No related branches found
No related tags found
No related merge requests found
......@@ -576,7 +576,7 @@ continue_loading:
return ret;
}
#if defined(NIGHTLY_BUILD)
#if defined(NIGHTLY_BUILD) || defined(BASE_BROWSER_VERSION)
// Map of specific thread proc addresses we should block. In particular,
// LoadLibrary* APIs which indicate DLL injection
static void* gStartAddressesToBlock[4];
......@@ -589,7 +589,7 @@ static bool ShouldBlockThread(void* aStartAddress) {
return false;
}
#if defined(NIGHTLY_BUILD)
#if defined(NIGHTLY_BUILD) || defined(BASE_BROWSER_VERSION)
for (auto p : gStartAddressesToBlock) {
if (p == aStartAddress) {
return true;
......@@ -662,7 +662,7 @@ MFBT_API void DllBlocklist_Initialize(uint32_t aInitFlags) {
}
}
#if defined(NIGHTLY_BUILD)
#if defined(NIGHTLY_BUILD) || defined(BASE_BROWSER_VERSION)
// Populate a list of thread start addresses to block.
HMODULE hKernel = GetModuleHandleW(L"kernel32.dll");
if (hKernel) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment