[GRASS-dev] Limit in g.message? was: Limit in number of "variables" for r.mapcalc?

Markus Neteler neteler at osgeo.org
Mon Apr 27 04:24:20 PDT 2015


On Mon, Apr 27, 2015 at 1:16 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
> But more significantly, G_message() etc use an internal buffer of 2000
> bytes. A message longer than that probably won't work and may well
> cause the g.message to crash.

How about (ab)using GPATH_MAX (include/gis.h) which is 4096 chars long
and using it in
general/g.message/main.c as well to avoid a buffer overflow?

Markus


More information about the grass-dev mailing list