From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10266 invoked by alias); 7 Apr 2011 08:52:51 -0000 Received: (qmail 10254 invoked by uid 22791); 7 Apr 2011 08:52:51 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-pw0-f41.google.com (HELO mail-pw0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 07 Apr 2011 08:52:45 +0000 Received: by pwi10 with SMTP id 10so1181544pwi.0 for ; Thu, 07 Apr 2011 01:52:44 -0700 (PDT) Received: by 10.142.13.5 with SMTP id 5mr614860wfm.426.1302166364645; Thu, 07 Apr 2011 01:52:44 -0700 (PDT) Received: from bubble.grove.modra.org ([115.187.252.19]) by mx.google.com with ESMTPS id z10sm1957950wfj.0.2011.04.07.01.52.42 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 07 Apr 2011 01:52:43 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 58C32170C1A4; Thu, 7 Apr 2011 18:22:38 +0930 (CST) Date: Thu, 07 Apr 2011 08:52:00 -0000 From: Alan Modra To: Kai Tietz Cc: Binutils , Nick Clifton Subject: Re: [patch bfd]: Prevent possible buffer overflow on pdata-section sorting Message-ID: <20110407085238.GZ19002@bubble.grove.modra.org> Mail-Followup-To: Kai Tietz , Binutils , Nick Clifton References: <20110407010943.GW19002@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-04/txt/msg00084.txt.bz2 On Thu, Apr 07, 2011 at 08:15:42AM +0200, Kai Tietz wrote: > Hmm, not sure. Well, I'm 99% sure. :-) rawsize on an output section, if non-zero, is just a stale size at bfd_final_link. Hmm. Which means bfd_get_section_contents is wrong to look at rawsize on output sections. Seems I have some bugs to fix. -- Alan Modra Australia Development Lab, IBM