From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25980 invoked by alias); 28 Sep 2005 12:32:15 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 25710 invoked by uid 22791); 28 Sep 2005 12:31:43 -0000 Received: from omta01ps.mx.bigpond.com (HELO omta01ps.mx.bigpond.com) (144.140.82.153) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 28 Sep 2005 12:31:43 +0000 Received: from grove.modra.org ([144.136.167.90]) by omta01ps.mx.bigpond.com with ESMTP id <20050928123138.QCEN15431.omta01ps.mx.bigpond.com@grove.modra.org> for ; Wed, 28 Sep 2005 12:31:38 +0000 Received: by bubble.grove.modra.org (Postfix, from userid 500) id 3663C46408; Wed, 28 Sep 2005 22:01:38 +0930 (CST) Date: Wed, 28 Sep 2005 14:10:00 -0000 From: Alan Modra To: Arnold Metselaar Cc: binutils@sources.redhat.com Subject: Re: [PATCH]: missing check in gas/app.c Message-ID: <20050928123137.GR29044@bubble.grove.modra.org> Mail-Followup-To: Arnold Metselaar , binutils@sources.redhat.com References: <200509132241.10379.arnold.metselaar@planet.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200509132241.10379.arnold.metselaar@planet.nl> User-Agent: Mutt/1.4i X-SW-Source: 2005-09/txt/msg00323.txt.bz2 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 * app.c (do_scrub_chars ): Check for full buffer after copying string. -- Alan Modra IBM OzLabs - Linux Technology Centre