Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Core
Tor
Commits
9be65c44
Unverified
Commit
9be65c44
authored
Aug 12, 2019
by
teor
Browse files
Merge remote-tracking branch 'tor-github/pr/926' into maint-0.3.5
parents
955cf962
2cdc6b20
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/bug30040
0 → 100644
View file @
9be65c44
o Minor bugfixes (security):
- Fix a potential double free bug when reading huge bandwidth files. The
issue is not exploitable in the current Tor network because the
vulnerable code is only reached when directory authorities read bandwidth
files, but bandwidth files come from a trusted source (usually the
authorities themselves). Furthermore, the issue is only exploitable in
rare (non-POSIX) 32-bit architectures which are not used by any of the
current authorities. Fixes bug 30040; bugfix on 0.3.5.1-alpha. Bug found
and fixed by Tobias Stoeckmann.
src/ext/getdelim.c
View file @
9be65c44
...
...
@@ -67,7 +67,8 @@ compat_getdelim_(char **buf, size_t *bufsiz, int delimiter, FILE *fp)
char
*
nbuf
;
size_t
nbufsiz
=
*
bufsiz
*
2
;
ssize_t
d
=
ptr
-
*
buf
;
if
((
nbuf
=
raw_realloc
(
*
buf
,
nbufsiz
))
==
NULL
)
if
(
nbufsiz
<
*
bufsiz
||
(
nbuf
=
raw_realloc
(
*
buf
,
nbufsiz
))
==
NULL
)
return
-
1
;
*
buf
=
nbuf
;
*
bufsiz
=
nbufsiz
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment