]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a potential buffer overflow found by Ilja van Sprundel.
authorRoger Dingledine <arma@torproject.org>
Mon, 11 Oct 2004 21:55:19 +0000 (21:55 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 11 Oct 2004 21:55:19 +0000 (21:55 +0000)
We don't think this is exploitable, but best to fix it anyway.

svn:r2437

src/or/rephist.c

index 1638d52e1194a07885622e489306b224139b4587..ed701009bcbd0a99ed391e524f61cbe4286290cc 100644 (file)
@@ -287,7 +287,7 @@ void rep_hist_dump_stats(time_t now, int severity)
           break;
         }
       }
-      log(severity, buffer);
+      log(severity, "%s", buffer);
     }
   }
 }