mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
Fix double-free bug in microdesc parser
This commit is contained in:
parent
0f48e8fa9a
commit
247cbab6c8
7
changes/microdesc-double-free
Normal file
7
changes/microdesc-double-free
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
o Security fixes:
|
||||||
|
- Don't double-free a parsable, but invalid, microdescriptor, even
|
||||||
|
if it is followed in the blob we're parsing by an unparsable
|
||||||
|
microdescriptor. Fixes an issue reported in a comment on bug 2954.
|
||||||
|
Bugfix on 0.2.2.6-alpha; fix by "cypherpunks".
|
||||||
|
|
||||||
|
|
@ -4357,6 +4357,7 @@ microdescs_parse_from_string(const char *s, const char *eos,
|
|||||||
md = NULL;
|
md = NULL;
|
||||||
next:
|
next:
|
||||||
microdesc_free(md);
|
microdesc_free(md);
|
||||||
|
md = NULL;
|
||||||
|
|
||||||
memarea_clear(area);
|
memarea_clear(area);
|
||||||
smartlist_clear(tokens);
|
smartlist_clear(tokens);
|
||||||
|
Loading…
Reference in New Issue
Block a user