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
David Goulet
Tor
Commits
cec647ff
Commit
cec647ff
authored
Mar 17, 2020
by
Nick Mathewson
🐕
Browse files
Merge branch 'trove_2020_004_041_v2' into maint-0.4.1
parents
5f4e14b8
78bcfc12
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/ticket33619
0 → 100644
View file @
cec647ff
o Major bugfixes (circuit padding, memory leaks):
- Avoid a remotely triggered memory leak in the case that a circuit
padding machine is somehow negotiated twice on the same circuit. Fixes
bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls. This is
also tracked as TROVE-2020-004.
src/core/or/circuitpadding.c
View file @
cec647ff
...
...
@@ -2381,9 +2381,12 @@ circpad_setup_machine_on_circ(circuit_t *on_circ,
return
;
}
tor_assert_nonfatal
(
on_circ
->
padding_machine
[
machine
->
machine_index
]
==
NULL
);
tor_assert_nonfatal
(
on_circ
->
padding_info
[
machine
->
machine_index
]
==
NULL
);
IF_BUG_ONCE
(
on_circ
->
padding_machine
[
machine
->
machine_index
]
!=
NULL
)
{
return
;
}
IF_BUG_ONCE
(
on_circ
->
padding_info
[
machine
->
machine_index
]
!=
NULL
)
{
return
;
}
/* Log message */
if
(
CIRCUIT_IS_ORIGIN
(
on_circ
))
{
...
...
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