Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
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
jarl
tor
Commits
d6ca36de
Commit
d6ca36de
authored
8 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge branch 'bug20710_025' into maint-0.2.9
parents
30f05167
045a50e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/bug20710_025
+4
-0
4 additions, 0 deletions
changes/bug20710_025
src/common/sandbox.c
+3
-2
3 additions, 2 deletions
src/common/sandbox.c
with
7 additions
and
2 deletions
changes/bug20710_025
0 → 100644
+
4
−
0
View file @
d6ca36de
o Minor bugfixes (memory leak, use-after-free, linux seccomp2 sandbox):
- Fix a memory leak and use-after-free error when removing entries
from the sandbox's getaddrinfo() cache. Fixes bug 20710; bugfix on
0.2.5.5-alpha. Patch from "cypherpunks".
This diff is collapsed.
Click to expand it.
src/common/sandbox.c
+
3
−
2
View file @
d6ca36de
...
...
@@ -1579,13 +1579,14 @@ sandbox_add_addrinfo(const char *name)
void
sandbox_free_getaddrinfo_cache
(
void
)
{
cached_getaddrinfo_item_t
**
next
,
**
item
;
cached_getaddrinfo_item_t
**
next
,
**
item
,
*
this
;
for
(
item
=
HT_START
(
getaddrinfo_cache
,
&
getaddrinfo_cache
);
item
;
item
=
next
)
{
this
=
*
item
;
next
=
HT_NEXT_RMV
(
getaddrinfo_cache
,
&
getaddrinfo_cache
,
item
);
cached_getaddrinfo_item_free
(
*
item
);
cached_getaddrinfo_item_free
(
this
);
}
HT_CLEAR
(
getaddrinfo_cache
,
&
getaddrinfo_cache
);
...
...
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