Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KQJi8-0000lq-56 for mharc-grub-devel@gnu.org; Tue, 05 Aug 2008 06:24:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQJi4-0000kM-Pn for grub-devel@gnu.org; Tue, 05 Aug 2008 06:24:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQJi0-0000jQ-E9 for grub-devel@gnu.org; Tue, 05 Aug 2008 06:24:07 -0400 Received: from [199.232.76.173] (port=60553 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQJhz-0000j8-DC for grub-devel@gnu.org; Tue, 05 Aug 2008 06:24:04 -0400 Received: from smtp-vbr8.xs4all.nl ([194.109.24.28]:1109) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KQJhy-0005yZ-Qt for grub-devel@gnu.org; Tue, 05 Aug 2008 06:24:03 -0400 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr8.xs4all.nl (8.13.8/8.13.8) with ESMTP id m75AO1Tf061843 for ; Tue, 5 Aug 2008 12:24:01 +0200 (CEST) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <1217239936.4016.14.camel@fz-deb.local> Mail-Copies-To: mgerards@xs4all.nl Date: Tue, 05 Aug 2008 12:26:40 +0200 In-Reply-To: (bean123ch@gmail.com's message of "Tue, 29 Jul 2008 19:48:35 +0800") Message-ID: <871w13hi5b.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Subject: Re: GRUB has a problem with a big grub.cfg 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: Tue, 05 Aug 2008 10:24:09 -0000 Hi, Bean writes: > I have found the bug, it's caused by buffer overflown. In get_line > (normal/main.c), if the string length is multiple of 64, the ending \0 > will overflow the buffer, this patch fix the problem: Looks fine to me. -- Marco