]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
authorokuji <okuji@localhost>
Thu, 20 Apr 2006 02:33:44 +0000 (02:33 +0000)
committerokuji <okuji@localhost>
Thu, 20 Apr 2006 02:33:44 +0000 (02:33 +0000)
        * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
        size with GRUB_OS_AREA_SIZE as grub_size_t instead of
        grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.

ChangeLog
loader/i386/pc/linux.c

index ec1822fefe0bf683542b24d20f72445c84293c41..8fed46ab78ea32ed9c3db5be4dd1d9a4da477457 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-04-20  Yoshinori K. Okuji  <okuji@enbug.org>
+
+       * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
+       size with GRUB_OS_AREA_SIZE as grub_size_t instead of
+       grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
+
 2006-04-19  Roger Leigh  <rleigh@whinlatter.ukfsn.org>
 
        * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
index eac0f1523679e1686d6af6926ac1c988beaef4dd..f1a18a65a1b214f0eec38c983f549f6dbd70dc65 100644 (file)
@@ -81,9 +81,11 @@ grub_rescue_cmd_linux (int argc, char *argv[])
   if (! file)
     goto fail;
 
-  if (grub_file_size (file) > (grub_ssize_t) grub_os_area_size)
+  if ((grub_size_t) grub_file_size (file) > grub_os_area_size)
     {
-      grub_error (GRUB_ERR_OUT_OF_RANGE, "too big kernel");
+      grub_error (GRUB_ERR_OUT_OF_RANGE, "too big kernel (0x%x > 0x%x)",
+                 (grub_size_t) grub_file_size (file),
+                 grub_os_area_size);
       goto fail;
     }