mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-20 21:16:22 +02:00
fix an impossible-to-actually-trigger overflow in descriptor generation
This commit is contained in:
parent
0450813227
commit
f1d74f611d
@ -1613,7 +1613,7 @@ rep_hist_get_bandwidth_lines(int for_extrainfo)
|
||||
size_t len;
|
||||
|
||||
/* opt (read|write)-history yyyy-mm-dd HH:MM:SS (n s) n,n,n,n,n... */
|
||||
len = (60+20*NUM_TOTALS)*2;
|
||||
len = (60+21*NUM_TOTALS)*2;
|
||||
buf = tor_malloc_zero(len);
|
||||
cp = buf;
|
||||
for (r=0;r<2;++r) {
|
||||
|
Loading…
Reference in New Issue
Block a user