Selaa lähdekoodia

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

Roger Dingledine 21 vuotta sitten
vanhempi
commit
5c53c63aa0
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/or/rephist.c

+ 1 - 1
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);
     }
   }
 }