summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2010-01-15 15:55:08 -0500
committerRoger Dingledine <arma@torproject.org>2010-01-15 15:56:54 -0500
commitf1d74f611d57ab87f8e408aa23a73fd9552e95c9 (patch)
treef8f72d0b940d398d54698593d6c9e72cb1e7def6
parent045081322730e87df61cc1749575e3ec4d7955a8 (diff)
downloadtor-f1d74f611d57ab87f8e408aa23a73fd9552e95c9.tar.gz
tor-f1d74f611d57ab87f8e408aa23a73fd9552e95c9.zip
fix an impossible-to-actually-trigger overflow in descriptor generation
-rw-r--r--src/or/rephist.c2
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) {