Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hp7Jl-0001t6-Df for mharc-grub-devel@gnu.org; Fri, 18 May 2007 14:36:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hp7Jj-0001sU-6G for grub-devel@gnu.org; Fri, 18 May 2007 14:36:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hp7Ji-0001rp-60 for grub-devel@gnu.org; Fri, 18 May 2007 14:36:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hp7Jh-0001rh-Vd for grub-devel@gnu.org; Fri, 18 May 2007 14:36:42 -0400 Received: from [212.85.152.101] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hp7Jh-0002hY-Fi for grub-devel@gnu.org; Fri, 18 May 2007 14:36:41 -0400 Received: from kotoba.oasis.nexedi.com (kotoba.oasis.nexedi.com [212.85.152.101]) by kotoba.storever.com (Postfix) with ESMTP id F24203D021C8C for ; Sat, 19 May 2007 00:41:38 +0200 (CEST) Received: from [??1] (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id B56133D021C8A for ; Sat, 19 May 2007 00:41:38 +0200 (CEST) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Fri, 18 May 2007 20:36:40 +0200 User-Agent: KMail/1.9.4 References: <20070514090937.GA10895@aragorn> <87hcqb3h5t.fsf@xs4all.nl> <87fy5vb6li.wl@dekkers.cx> In-Reply-To: <87fy5vb6li.wl@dekkers.cx> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705182036.40145.okuji@enbug.org> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.17.2 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) Subject: Re: double free() with grub-probe X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2007 18:36:43 -0000 On Thursday 17 May 2007 21:19, Jeroen Dekkers wrote: > I could reproduce this on one of my machines and ran it through > valgrind. I've just committed a fix to the grub2 CVS repository (as > well as another memory bug valgrind spotted). A copy of the patch is > below. Thank you for your fix. Just a small thing, but isn't it better to check the return value from grub_realloc? Okuji