Received: from list by monty-python.gnu.org with archive (Exim 4.34) id 1BTlny-0003ga-FP for mharc-grub-devel@gnu.org; Fri, 28 May 2004 14:10:06 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BTlnu-0003fS-9c for grub-devel@gnu.org; Fri, 28 May 2004 14:10:02 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BTlnI-0003Yb-G2 for grub-devel@gnu.org; Fri, 28 May 2004 14:09:57 -0400 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BTijD-0007Dt-VK for grub-devel@gnu.org; Fri, 28 May 2004 10:53:00 -0400 Received: from localhost (charlie.han.nl [145.74.66.9]) by mail-cn.han.nl (Postfix) with ESMTP id 3B4D98A0B for ; Fri, 28 May 2004 16:49:22 +0200 (CEST) Received: from mail-cn.han.nl ([145.74.66.11]) by localhost (charlie.han.nl [145.74.66.9]) (amavisd-new, port 10024) with ESMTP id 31859-06 for ; Fri, 28 May 2004 16:49:20 +0200 (CEST) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 2CD6081B2 for ; Fri, 28 May 2004 16:49:20 +0200 (CEST) Received: from marco.marco-g.com (a82-92-27-129.adsl.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 49610C056 for ; Fri, 28 May 2004 15:49:19 +0200 (CEST) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <200405221344.48097.timothy.baldwin1@tesco.net> From: Marco Gerards Date: Fri, 28 May 2004 16:51:55 +0200 In-Reply-To: <200405221344.48097.timothy.baldwin1@tesco.net> (Timothy Baldwin's message of "Sat, 22 May 2004 13:44:47 +0100") Message-ID: <87n03s38qc.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new@vscan-cn.han.nl Subject: Re: Fix for rescue mode crashes X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.4 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, 28 May 2004 18:10:04 -0000 Timothy Baldwin writes: > - if (grub_split_cmdline (line, getline, &n, &args)) > + if (grub_split_cmdline (line, getline, &n, &args) || n < 0) Now I think about it, it is better to fix this in grub_split_cmdline. That would be a cleaner solution and that will fix the same problem in normal mode as well (I assume it has the same problems). I will fix this and commit it this evening. Thanks, Marco