This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] [3.1] Remove buffer overflow in __gnat_tmp_name
- From: Geert Bosch <bosch at gnat dot com>
- To: Florian Weimer <fw at deneb dot enyo dot de>
- Cc: gcc-patches at gcc dot gnu dot org, dewar at gnat dot com
- Date: Sat, 20 Apr 2002 21:22:23 -0400
- Subject: Re: [Ada] [3.1] Remove buffer overflow in __gnat_tmp_name
On Saturday, April 20, 2002, at 03:36 , Florian Weimer wrote:
> The patch below is a minimal one which removes the buffer overflow bug
> on GNU/Linux mentioned in PR ada/5903.
>
> It's not a real solution (especially if we want to port GNAT to The
> Hurd one day, where no proper path length limit exists), but for the
> 3.1 release, it will do.
>
> (Note that other, not so obvious potential buffer overflows remain. A
> couple of months ago, I listed them in a message to gcc-patches,
> IIRC.)
>
> 2002-04-20 Florian Weimer <fw@deneb.enyo.de>
>
> * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
> GNU/Linux.
This is OK. Please apply.