From: Roger Dingledine Date: Sat, 18 Oct 2003 01:28:39 +0000 (+0000) Subject: we've been stomping on memory while reading config X-Git-Tag: tor-0.0.2pre13~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2093f607603de756e0ec431c49dbbdca9ce22850;p=thirdparty%2Ftor.git we've been stomping on memory while reading config doesn't seem to have bitten us yet, but let's fix that :) svn:r619 --- diff --git a/src/common/util.c b/src/common/util.c index 333cd65e6e..ccc130030e 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -481,7 +481,7 @@ try_next_line: do { *s = 0; s--; - } while (isspace(*s)); + } while (s >= line && isspace(*s)); key = line; while(isspace(*key))