diff options
author | Roger Dingledine <arma@torproject.org> | 2004-10-11 21:55:19 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-10-11 21:55:19 +0000 |
commit | 5c53c63aa0f9e98e5aec61311a898bb76df3849a (patch) | |
tree | 32277cc97de82a0bb3667ba6f30b31d5af00868a | |
parent | 7798e3d770b46a039fcf47c25c26a467eed4e0ce (diff) | |
download | tor-5c53c63aa0f9e98e5aec61311a898bb76df3849a.tar tor-5c53c63aa0f9e98e5aec61311a898bb76df3849a.tar.gz |
Fix a potential buffer overflow found by Ilja van Sprundel.
We don't think this is exploitable, but best to fix it anyway.
svn:r2437
-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 1638d52e1..ed701009b 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -287,7 +287,7 @@ void rep_hist_dump_stats(time_t now, int severity) break; } } - log(severity, buffer); + log(severity, "%s", buffer); } } } |