[GRASS-dev] Re: [GRASS GIS] #800: r.random and r.reclass - buffer overflow on long mapset/map names

GRASS GIS trac at osgeo.org
Mon Jun 28 23:06:21 EDT 2010


#800: r.random and r.reclass - buffer overflow on long mapset/map names
--------------------------+-------------------------------------------------
 Reporter:  ferrouswheel  |       Owner:  grass-dev@…              
     Type:  defect        |      Status:  new                      
 Priority:  normal        |   Milestone:  6.5.0                    
Component:  Raster        |     Version:  svn-develbranch6         
 Keywords:                |    Platform:  All                      
      Cpu:  All           |  
--------------------------+-------------------------------------------------

Comment(by ferrouswheel):

 I wonder if there shouldn't be a wrapper method for updating the History
 object.

 Doing a grep for the offending line:

 grep -r sprintf\(hist.dat *

 Shows the following modules making unsafe assumptions about map name
 length: r.buffer, r.carve, r.random, r.recode, r.slope.aspect, r.sunmask,
 and the simwe modules.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/800#comment:5>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list