Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HpABe-0002qJ-HR for mharc-grub-devel@gnu.org; Fri, 18 May 2007 17:40:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HpABc-0002p2-Gu for grub-devel@gnu.org; Fri, 18 May 2007 17:40:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HpABb-0002oM-GH for grub-devel@gnu.org; Fri, 18 May 2007 17:40:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HpABb-0002oG-CA for grub-devel@gnu.org; Fri, 18 May 2007 17:40:31 -0400 Received: from neonescio.viaisn.org ([82.94.249.43]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HpABa-0005k5-QC for grub-devel@gnu.org; Fri, 18 May 2007 17:40:30 -0400 Received: from dijkstra.dekkers.cx ([2001:960:7a0:0:213:d4ff:fe9c:2487] ident=Debian-exim) by neonescio.viaisn.org with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32 CV=0) (Exim 4.63 #1) id 1HpABJ-0001hB-Gz for grub-devel@gnu.org; Fri, 18 May 2007 23:40:13 +0200 Received: from localhost ([127.0.0.1] helo=dijkstra.dekkers.cx ident=jeroen) by dijkstra.dekkers.cx with esmtp (Exim 4.63) (envelope-from ) id 1HpABI-0004I2-5h for grub-devel@gnu.org; Fri, 18 May 2007 23:40:12 +0200 Date: Fri, 18 May 2007 23:40:11 +0200 Message-ID: <878xblvmis.wl@dekkers.cx> From: Jeroen Dekkers To: The development of GRUB 2 In-Reply-To: <200705182036.40145.okuji@enbug.org> References: <20070514090937.GA10895@aragorn> <87hcqb3h5t.fsf@xs4all.nl> <87fy5vb6li.wl@dekkers.cx> <200705182036.40145.okuji@enbug.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.0.95 (x86_64-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-detected-kernel: Linux 2.6 (newer, 3) 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 21:40:32 -0000 At Fri, 18 May 2007 20:36:40 +0200, Yoshinori K. Okuji wrote: > > 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? Oops... fixed it. Jeroen Dekkers