diff options
author | Roger Dingledine <arma@torproject.org> | 2010-01-15 15:55:08 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2010-01-15 15:56:54 -0500 |
commit | f1d74f611d57ab87f8e408aa23a73fd9552e95c9 (patch) | |
tree | f8f72d0b940d398d54698593d6c9e72cb1e7def6 /src/or/rephist.c | |
parent | 045081322730e87df61cc1749575e3ec4d7955a8 (diff) | |
download | tor-f1d74f611d57ab87f8e408aa23a73fd9552e95c9.tar.gz tor-f1d74f611d57ab87f8e408aa23a73fd9552e95c9.zip |
fix an impossible-to-actually-trigger overflow in descriptor generation
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r-- | src/or/rephist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c index 7f71dc0fba..e606db3b7b 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -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) { |