[PATCH]: missing check in gas/app.c

Alan Modra amodra@bigpond.net.au
Wed Sep 28 14:10:00 GMT 2005


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



More information about the Binutils mailing list