]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Avoid possible array overflow. Reported by Madhu Kurup.
authorNicholas Nethercote <njn@valgrind.org>
Wed, 25 May 2005 21:26:35 +0000 (21:26 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Wed, 25 May 2005 21:26:35 +0000 (21:26 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3804

massif/hp2ps/HpFile.c

index 26832af9eeddcb9628adfbe9f822e6c718fff75f..ae7d6cdf074c3b5bcf7975751e2176d05a93f29e 100644 (file)
@@ -340,7 +340,7 @@ GetHpTok(infp)
  *     "thefloatish").
  */
 
-static char numberstring[ NUMBER_LENGTH - 1 ];
+static char numberstring[ NUMBER_LENGTH ];
 
 token
 GetNumber(infp)