]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2003-03-19 Yoshinori K. Okuji <okuji@enbug.org>
authorokuji <okuji@localhost>
Tue, 18 Mar 2003 21:07:35 +0000 (21:07 +0000)
committerokuji <okuji@localhost>
Tue, 18 Mar 2003 21:07:35 +0000 (21:07 +0000)
* stage2/boot.c (load_image): Check if DATA_LEN plus SECTOR_SIZE
is less than or equal to MULTIBOOT_SEARCH, instead of if
DATA_LEN is less than or equal to MULTIBOOT_SEARCH.
Reported by Neelkanth Natu <neelnatu@yahoo.com>.

ChangeLog
THANKS
stage2/boot.c

index 35042ca65c8052a5e35692b07da15beecccc5c7e..66c99da6c55ea200b74e90fa489438aca8af6b3e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-03-19  Yoshinori K. Okuji  <okuji@enbug.org>
+
+       * stage2/boot.c (load_image): Check if DATA_LEN plus SECTOR_SIZE
+       is less than or equal to MULTIBOOT_SEARCH, instead of if
+       DATA_LEN is less than or equal to MULTIBOOT_SEARCH.
+       Reported by Neelkanth Natu <neelnatu@yahoo.com>.
+
 2003-03-10  Yoshinori K. Okuji  <okuji@enbug.org>
 
        From Andrew Walrond <andrew@walrond.org>:
diff --git a/THANKS b/THANKS
index 68c622b9e131aa01c37a5061fb799457b502d918..d5dfb8f3273531ff1dc42ee8ff4f929d920a4d8c 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -79,6 +79,7 @@ Michael Sullivan <mike@trdlnk.com>
 Mike Meyer <mwm@mired.org>
 Miles Bader <miles@gnu.org>
 Neal H Walfield <neal@walfield.org>
+Neelkanth Natu <neelnatu@yahoo.com>
 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
 Pavel Roskin <pavel_roskin@geocities.com>
 Per Lundberg <plundis@byggdok.se>
index ace0d1f020ea6e5dd47f083c42d4f0569a20d792..905cf0ec43e66f4e554cc0a684e69f9e328477fc 100644 (file)
@@ -1,7 +1,7 @@
 /* boot.c - load and bootstrap a kernel */
 /*
  *  GRUB  --  GRand Unified Bootloader
- *  Copyright (C) 1999,2000,2001,2002  Free Software Foundation, Inc.
+ *  Copyright (C) 1999,2000,2001,2002,2003  Free Software Foundation, Inc.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -373,9 +373,9 @@ load_image (char *kernel, char *arg, kernel_t suggested_type,
              linux_mem_size = 0;
          }
       
-         /* It is possible that DATA_LEN is greater than MULTIBOOT_SEARCH,
-            so the data may have been read partially.  */
-         if (data_len <= MULTIBOOT_SEARCH)
+         /* It is possible that DATA_LEN + SECTOR_SIZE is greater than
+            MULTIBOOT_SEARCH, so the data may have been read partially.  */
+         if (data_len + SECTOR_SIZE <= MULTIBOOT_SEARCH)
            grub_memmove (linux_data_tmp_addr, buffer,
                          data_len + SECTOR_SIZE);
          else