[GRASS-dev] [GRASS GIS] #1311: DebCheck QA: Array index is out of bounds

GRASS GIS trac at osgeo.org
Fri Mar 18 02:30:49 EDT 2011


#1311: DebCheck QA: Array index is out of bounds
------------------------------+---------------------------------------------
 Reporter:  hamish            |       Owner:  grass-dev@…              
     Type:  defect            |      Status:  new                      
 Priority:  normal            |   Milestone:  6.4.2                    
Component:  Compiling         |     Version:  6.4.0                    
 Keywords:  r.flow, v.in.dwg  |    Platform:  Linux                    
      Cpu:  Unspecified       |  
------------------------------+---------------------------------------------
 Hi,

 Debian's run of the Cpp check tool automatically found a number of C-code
 errors (or
 potential errors) which need to be reviewed by hand. See grass-dev ML
 thread
 of 13 Jan 2011.

 about:
  http://www.linuxjournal.com/content/daca-could-mean-less-bugs-debian
 the list of probably-bugs in the 6.4.0 C/C++ code:
   http://qa.debian.org/daca/cppcheck/squeeze/grass_6.4.0~rc6+42329-3.html
 CLI analysis program (not Debian specific):
   http://cppcheck.wiki.sourceforge.net


 I have split those 154 hits into 16 classes, and will report each class in
 an individual bug report.


 Run against releasebranch6_4 r42329 (including all patches up to, but not
 beyond, 6.4.0-final)

 This bug report is for: '''Array index is out of bounds'''

  * ./raster/r.flow/precomp.c:154 [error] - Array index -1 is out of bounds
  * ./raster/r.flow/precomp.c:158 [error] - Array index -1 is out of bounds
  * ./raster/r.flow/precomp.c:161 [error] - Array index -1 is out of bounds
  * ./raster/r.flow/precomp.c:163 [error] - Array index -1 is out of bounds
  * ./raster/r.flow/precomp.c:165 [error] - Array index -1 is out of bounds
  * ./vector/v.in.dwg/entity.c:516 [error] - Array 'tempdouble[2]' index 2
 out of bounds
  * ./vector/v.in.dwg/entity.c:517 [error] - Array 'tempwidth[2]' index 2
 out of bounds

 Modules: r.flow, v.in.dwg



 thanks,
 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1311>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list