#800: r.random - buffer overflow on long mapset/map names --------------------------+------------------------------------------------- Reporter: ferrouswheel | Owner: [email protected] Type: defect | Status: new Priority: normal | Milestone: 6.4.0 Component: default | Version: unspecified Keywords: | Platform: Unspecified Cpu: Unspecified | --------------------------+------------------------------------------------- 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. This truncates the messages, but the RECORD_LEN for the History struct is by default only 80.
-- Ticket URL: <http://trac.osgeo.org/grass/ticket/800> GRASS GIS <http://grass.osgeo.org>
_______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
