[GRASS-dev] Re: [GRASS GIS] #800: r.random and r.reclass - buffer
overflow on long mapset/map names
GRASS GIS
trac at osgeo.org
Fri Sep 23 23:01:14 EDT 2011
#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 hamish):
Replying to [comment:9 cmbarton]:
> Just discovered that this also affects r.recode. It crashes with a very
> confusing buffer overflow error if the file names are too long.
probably these two:
{{{
recode.c: sprintf(hist.edhist[0], "recode of raster map %s", name);
recode.c: sprintf(hist.datsrc_1, "raster map %s", name);
}}}
which has a max RECORD_LEN of 80 in grass 6.
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/800#comment:10>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list