This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH]: missing check in gas/app.c
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Arnold Metselaar <arnold dot metselaar at planet dot nl>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 28 Sep 2005 22:01:37 +0930
- Subject: Re: [PATCH]: missing check in gas/app.c
- References: <200509132241.10379.arnold.metselaar@planet.nl>
On Tue, Sep 13, 2005 at 10:41:09PM +0200, Arnold Metselaar wrote:
> *** src/gas/app.c 2005-05-05 11:12:43.000000000 +0200
> --- src/gas/app.c.new 2005-09-13 22:24:44.000000000 +0200
> ***************
> *** 1302,1307 ****
> --- 1302,1310 ----
> case 1: *to++ = *from++;
> }
> }
> + /* normally tested in PUT() */
> + if (to >= toend)
> + goto tofull;
> ch = GET ();
> }
> }
Applied with this ChangeLog entry:
2005-09-28 Arnold Metselaar <arnold.metselaar@planet.nl>
* app.c (do_scrub_chars <LEX_IS_SYMBOL_COMPONENT>): Check for full
buffer after copying string.
--
Alan Modra
IBM OzLabs - Linux Technology Centre