mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Merge branch 'maint-0.3.5' into maint-0.4.4
This commit is contained in:
commit
5ec579610a
5
changes/bug40316
Normal file
5
changes/bug40316
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
o Major bugfixes (security, denial of service):
|
||||||
|
- Fix a bug in appending detached signatures to a pending consensus
|
||||||
|
document that could be used to crash a directory authority.
|
||||||
|
Fixes bug 40316; bugfix on 0.2.2.6-alpha. Tracked as
|
||||||
|
TROVE-2021-002 and CVE-2021-28090.
|
@ -3576,7 +3576,7 @@ dirvote_add_signatures_to_pending_consensus(
|
|||||||
strlen(pc->body) + strlen(new_signatures) + 1;
|
strlen(pc->body) + strlen(new_signatures) + 1;
|
||||||
pc->body = tor_realloc(pc->body, new_consensus_len);
|
pc->body = tor_realloc(pc->body, new_consensus_len);
|
||||||
dst_end = pc->body + new_consensus_len;
|
dst_end = pc->body + new_consensus_len;
|
||||||
dst = strstr(pc->body, "directory-signature ");
|
dst = (char *) find_str_at_start_of_line(pc->body, "directory-signature ");
|
||||||
tor_assert(dst);
|
tor_assert(dst);
|
||||||
strlcpy(dst, new_signatures, dst_end-dst);
|
strlcpy(dst, new_signatures, dst_end-dst);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user