[GRASS-dev] Fwd: Buffer overflow GRASS GIS 6.3.0
Markus Neteler
neteler at osgeo.org
Fri Nov 14 10:34:22 EST 2008
2008/11/14 Glynn Clements <glynn at gclements.plus.com>:
>
> 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));
>
Backported to 6.3.svn, too.
Markus
More information about the grass-dev
mailing list