From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14790 invoked by alias); 19 Jan 2012 11:35:41 -0000 Received: (qmail 14698 invoked by uid 22791); 19 Jan 2012 11:35:40 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Jan 2012 11:35:26 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 1106DCB3ABF; Thu, 19 Jan 2012 12:35:26 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YWA+s+oQ1lYO; Thu, 19 Jan 2012 12:35:26 +0100 (CET) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id F392ECB3AAC; Thu, 19 Jan 2012 12:35:25 +0100 (CET) Subject: Re: [Patch]: Improve handling of DW_LNE_define_file Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: Tristan Gingold In-Reply-To: <20120116221614.GM3708@bubble.grove.modra.org> Date: Thu, 19 Jan 2012 11:35:00 -0000 Cc: binutils Development Content-Transfer-Encoding: 7bit Message-Id: References: <20120116221614.GM3708@bubble.grove.modra.org> To: Alan Modra 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: 2012-01/txt/msg00200.txt.bz2 On Jan 16, 2012, at 11:16 PM, Alan Modra wrote: > On Thu, Jan 12, 2012 at 01:05:15PM +0100, Tristan Gingold wrote: >> case DW_LNE_define_file: >> { >> - unsigned int dir_index = 0; >> + file_table = (File_Entry *) >> + xmalloc ((n_files + 1) * sizeof (File_Entry)); > > xrealloc. Otherwise OK. Argh, silly me. Fixed, regtested and committed. Thank you for catching that! Tristan.