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

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

parent e3337b95
Branches
Tags
1 merge request!1505BB/TB 43416: Rebased onto 135.0a1
......@@ -517,7 +517,7 @@ continue_loading:
return ret;
}
#if defined(BLOCK_LOADLIBRARY_INJECTION)
#if defined(BLOCK_LOADLIBRARY_INJECTION) || 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];
......@@ -530,7 +530,7 @@ static bool ShouldBlockThread(void* aStartAddress) {
return false;
}
#if defined(BLOCK_LOADLIBRARY_INJECTION)
#if defined(BLOCK_LOADLIBRARY_INJECTION) || defined(BASE_BROWSER_VERSION)
for (auto p : gStartAddressesToBlock) {
if (p == aStartAddress) {
return true;
......@@ -593,7 +593,7 @@ MFBT_API void DllBlocklist_Initialize(uint32_t aInitFlags) {
}
}
#if defined(BLOCK_LOADLIBRARY_INJECTION)
#if defined(BLOCK_LOADLIBRARY_INJECTION) || 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.
Please to comment