[GRASS-dev] Fwd: Buffer overflow GRASS GIS 6.3.0
Jáchym Čepický
jachym at les-ejk.cz
Fri Nov 14 07:45:38 EST 2008
thanks, glynn, I'll give it a try!
jachym
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));
>
> --
> Glynn Clements <glynn at gclements.plus.com>
>
--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
More information about the grass-dev
mailing list