Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Tor Browser
Commits
925d8e63
Verified
Commit
925d8e63
authored
2 years ago
by
Dan Ballard
Committed by
Pier Angelo Vendrame
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Bug 41149: Re-enable DLL injection protection in all builds not just nightlies
parent
7e253a0e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!543
Tor Browser 12.5a 102.8.0esr rebase
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
toolkit/xre/dllservices/mozglue/WindowsDllBlocklist.cpp
+3
-3
3 additions, 3 deletions
toolkit/xre/dllservices/mozglue/WindowsDllBlocklist.cpp
with
3 additions
and
3 deletions
toolkit/xre/dllservices/mozglue/WindowsDllBlocklist.cpp
+
3
−
3
View file @
925d8e63
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment