This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: (C++) memory overrun fix for arglist in lang_specific_driver
- To: Zack Weinberg <zack@bitmover.com>
- Subject: Re: (C++) memory overrun fix for arglist in lang_specific_driver
- From: Jeffrey A Law <law@cygnus.com>
- Date: Mon, 23 Aug 1999 23:23:35 -0600
- cc: Mumit Khan <khan@xraylith.wisc.EDU>, gcc-patches@gcc.gnu.org
- Reply-To: law@cygnus.com
In message <199908240438.VAA30528@zack.bitmover.com>you write:
> > However, looking at cppspec.c and f/g77spec.c I think they have a similar
> > problem -- I do do see where they allocate a argv slot for the last null
> > argument, nor I do see how they initialize that slot to NULL.
>
> cppspec.c does have the same problem. Patch follows.
>
> zw
>
> 1999-08-23 21:37 -0700 Zack Weinberg <zack@bitmover.com>
>
> * cppspec.c: Put a null pointer at the end of the new argv.
Thanks. Approved.
jeff