From: Roger Dingledine Date: Mon, 11 Oct 2004 21:55:19 +0000 (+0000) Subject: Fix a potential buffer overflow found by Ilja van Sprundel. X-Git-Tag: debian-version-0.0.8+0.0.9pre2-1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c53c63aa0f9e98e5aec61311a898bb76df3849a;p=thirdparty%2Ftor.git 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 --- diff --git a/src/or/rephist.c b/src/or/rephist.c index 1638d52e11..ed701009bc 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); } } }