[tbb-commits] [tor-browser] 19/90: Bug 41149: Re-enable DLL injection protection in all builds not just nightlies
gitolite role
git at cupani.torproject.org
Tue Nov 22 09:57:54 UTC 2022
This is an automated email from the git hooks/post-receive script.
richard pushed a commit to branch tor-browser-102.5.0esr-12.0-1
in repository tor-browser.
commit b01f23945351f068aa0518ba8d0adeec63e324dd
Author: Dan Ballard <dan at mindstab.net>
AuthorDate: Fri Oct 21 11:39:58 2022 -0700
Bug 41149: Re-enable DLL injection protection in all builds not just nightlies
---
toolkit/xre/dllservices/mozglue/WindowsDllBlocklist.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/toolkit/xre/dllservices/mozglue/WindowsDllBlocklist.cpp b/toolkit/xre/dllservices/mozglue/WindowsDllBlocklist.cpp
index 0c8292f68764..6300d47a2176 100644
--- a/toolkit/xre/dllservices/mozglue/WindowsDllBlocklist.cpp
+++ b/toolkit/xre/dllservices/mozglue/WindowsDllBlocklist.cpp
@@ -531,7 +531,7 @@ continue_loading:
return ret;
}
-#if defined(NIGHTLY_BUILD)
+#if defined(NIGHTLY_BUILD) || defined(BASE_BROWSER)
// Map of specific thread proc addresses we should block. In particular,
// LoadLibrary* APIs which indicate DLL injection
static void* gStartAddressesToBlock[4];
@@ -544,7 +544,7 @@ static bool ShouldBlockThread(void* aStartAddress) {
return false;
}
-#if defined(NIGHTLY_BUILD)
+#if defined(NIGHTLY_BUILD) || defined(BASE_BROWSER)
for (auto p : gStartAddressesToBlock) {
if (p == aStartAddress) {
return true;
@@ -618,7 +618,7 @@ MFBT_API void DllBlocklist_Initialize(uint32_t aInitFlags) {
}
}
-#if defined(NIGHTLY_BUILD)
+#if defined(NIGHTLY_BUILD) || defined(BASE_BROWSER)
// Populate a list of thread start addresses to block.
HMODULE hKernel = GetModuleHandleW(L"kernel32.dll");
if (hKernel) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the tbb-commits
mailing list