grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix for rescue mode crashes


From: Timothy Baldwin
Subject: Fix for rescue mode crashes
Date: Sat, 22 May 2004 16:22:12 +0100
User-agent: KMail/1.6.2

Rescue mode crashes when a null string is entered (only sometimes on bochs). 
Here is a patch to fix it:

Index: kern/rescue.c
===================================================================
RCS file: /cvsroot/grub/grub2/kern/rescue.c,v
retrieving revision 1.8
diff -u -r1.8 rescue.c
--- kern/rescue.c       4 Apr 2004 13:46:02 -0000       1.8
+++ kern/rescue.c       21 May 2004 09:28:32 -0000
@@ -676,12 +676,12 @@
       /* Get a command line.  */
       grub_rescue_get_command_line ("grub rescue> ");

-      if (grub_split_cmdline (line, getline, &n, &args))
+      if (grub_split_cmdline (line, getline, &n, &args) || n < 0)
        continue;


-- 
Member AFFS, WYLUG, SWP (UK), ANL, RESPECT, Leeds SA, Leeds Anti-war coalition
No to software patents!    No to DRM/EUCD - hands off our computers!










Attachment: pgpxviuNYFs7l.pgp
Description: signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]