#800: r.random - buffer overflow on long mapset/map names
---------------------------+------------------------------------------------
Reporter: ferrouswheel | Owner:
[hidden email]
Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: Raster | Version: svn-develbranch6
Resolution: | Keywords:
Platform: All | Cpu: All
---------------------------+------------------------------------------------
Comment (by glynn):
Replying to [ticket:800 ferrouswheel]:
> In r.random/support.c there are sprintf calls which cause buffer
overflow errors when the map names and mapsets are too long. I've attached
a patch to replace with snprintf.
snprintf() isn't in C89; if you want to use it, you need to add a
configure check, and provide an alternate in case it isn't available.
--
Ticket URL: <
http://trac.osgeo.org/grass/ticket/800#comment:2>
GRASS GIS <
http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev