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

GRASS GIS trac at osgeo.org
Sat Jan 14 18:56:04 EST 2012


#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       |  
------------------------------+---------------------------------------------

Comment(by hamish):

 suggested patch for v.in.dwg:
 {{{
 Index: entity.c
 ===================================================================
 --- entity.c    (revision 46424)
 +++ entity.c    (working copy)
 @@ -293,7 +293,7 @@
      PAD_ENT_HDR adenhd2;
      PAD_ENT aden2;
      OdaLong il;
 -    double tempdouble[2], tempbulge, tempwidth[2];
 +    double tempdouble[3], tempbulge, tempwidth[3];
      double x, y, z, ang;
      PAD_BLKH adblkh;
      int layer_found = 1;
 }}}


 Hamish

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



More information about the grass-dev mailing list