Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DlPCC-00078i-Cr for mharc-grub-devel@gnu.org; Thu, 23 Jun 2005 06:44:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DlPC2-00074n-Ii for grub-devel@gnu.org; Thu, 23 Jun 2005 06:44:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DlP60-00069B-Re for grub-devel@gnu.org; Thu, 23 Jun 2005 06:38:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DlP5v-0005mq-CW for grub-devel@gnu.org; Thu, 23 Jun 2005 06:38:04 -0400 Received: from [130.104.239.239] (helo=sprbodj.inma.ucl.ac.be) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DlOrC-0005LS-Q0 for grub-devel@gnu.org; Thu, 23 Jun 2005 06:22:51 -0400 Received: from [130.104.239.234] (pc-babaorom.inma.ucl.ac.be [130.104.239.234]) by sprbodj.inma.ucl.ac.be (Postfix) with ESMTP id 03E9919C8383 for ; Thu, 23 Jun 2005 12:19:24 +0200 (CEST) Message-ID: <42BA8CA4.2060601@inma.ucl.ac.be> Date: Thu, 23 Jun 2005 12:19:16 +0200 From: Vincent Guffens User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 X-Accept-Language: en MIME-Version: 1.0 To: The development of GRUB 2 References: <20050622210353.M3714@auto.ucl.ac.be> <200506231014.51719.okuji@enbug.org> In-Reply-To: <200506231014.51719.okuji@enbug.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-ucl-inma-MailScanner-Information: Please contact the ISP for more information X-ucl-inma-MailScanner: Found to be clean X-MailScanner-From: guffens@inma.ucl.ac.be Subject: Re: free magic is broken 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: Thu, 23 Jun 2005 10:44:23 -0000 Yoshinori K. Okuji wrote: > On Wednesday 22 June 2005 23:13, Vincent Guffens wrote: > >>I have prepared a small web page with some details as it is a little bit >>long to explain here. See it there if you want more information: >> >>http://www.auto.ucl.ac.be/~guffens/grub2_netboot/free_magic_broken.html > > > Thank you very much for your analysis! I finally understood what's wrong, and > checked in a fix (a bit different from yours). I guess it was very hard to > find how to reproduce this bug. > > Okuji yes, it was good fun (and a long night)! I managed to post a wrong test version yesterday. In the test program, this is not grub_malloc(base->first->size*(16-1)); but grub_malloc(base->first->size*16-16); Although it turns out to be equivalent as far as the bug is concerned, in this particular example. It is good to have that nasty one behind ! -- Vincent Guffens PhD Student UCL/CESAME tel: +32 10 47 80 30 Value your freedom, or you will lose it, teaches history. "Don't bother us with politics," respond those who don't want to learn. -- Richard M. Stallman