[GRASS-dev] Fwd: Buffer overflow GRASS GIS 6.3.0
Glynn Clements
glynn at gclements.plus.com
Fri Nov 14 07:28:59 EST 2008
Jáchym Čepický wrote:
> I already reported problem with g.parsr in GRASS 6.3 on Ubuntu 8.10
>
> here is another message, maybe it could help (?)
I believe that this has been fixed by r34172 (7.0) and r34173 (6.4),
with the following change:
--- general/g.parser/main.c (revision 34171)
+++ general/g.parser/main.c (revision 34172)
@@ -358,7 +358,7 @@
* to uppercase it was necessary to use uppercase variables.
* Set both until all scripts are updated */
for (flag = ctx.first_flag; flag; flag = flag->next_flag) {
- char buff[12];
+ char buff[16];
sprintf(buff, "GIS_FLAG_%c=%d", flag->key, flag->answer ? 1 : 0);
putenv(G_store(buff));
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list