[GRASS-SVN] r45756 - grass/branches/releasebranch_6_4/lib/dspf

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 26 06:22:29 EDT 2011


Author: marisn
Date: 2011-03-26 03:22:29 -0700 (Sat, 26 Mar 2011)
New Revision: 45756

Modified:
   grass/branches/releasebranch_6_4/lib/dspf/cube_io.c
Log:
Fix out-of-bounds buffer acces (detected by cppcheck)

Modified: grass/branches/releasebranch_6_4/lib/dspf/cube_io.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/dspf/cube_io.c	2011-03-26 06:28:24 UTC (rev 45755)
+++ grass/branches/releasebranch_6_4/lib/dspf/cube_io.c	2011-03-26 10:22:29 UTC (rev 45756)
@@ -249,7 +249,7 @@
 #ifdef NEWCODE
 int my_fread(char *buf, int size, int cnt, FILE * fp)
 {
-    static char in_buf[10000];
+    static char in_buf[10240];
     static char *start, *end;
     char *outp;
     int ret;



More information about the grass-commit mailing list