From: Nicholas Nethercote Date: Wed, 25 May 2005 21:26:35 +0000 (+0000) Subject: Avoid possible array overflow. Reported by Madhu Kurup. X-Git-Tag: svn/VALGRIND_3_0_0~514 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1bfe4d636920bb20541aa75bb375e557242bd223;p=thirdparty%2Fvalgrind.git Avoid possible array overflow. Reported by Madhu Kurup. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3804 --- diff --git a/massif/hp2ps/HpFile.c b/massif/hp2ps/HpFile.c index 26832af9ee..ae7d6cdf07 100644 --- a/massif/hp2ps/HpFile.c +++ b/massif/hp2ps/HpFile.c @@ -340,7 +340,7 @@ GetHpTok(infp) * "thefloatish"). */ -static char numberstring[ NUMBER_LENGTH - 1 ]; +static char numberstring[ NUMBER_LENGTH ]; token GetNumber(infp)