]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 9 May 2011 16:46:51 +0000 (18:46 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 9 May 2011 16:46:51 +0000 (18:46 +0200)
overflow.

ChangeLog
grub-core/kern/emu/hostdisk.c

index bec788b3cd32b400edfe66e26d549c7e9d692ffc..532a3a3b8e135f04941afe7c1b8a6febe0abb93a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
+       overflow.
+
 2011-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * util/grub-mkimage.c (main): Explicitely flush and sync the output
index 63bca37ee76f84a638ccf40576c97e00a05e3473..085048e8665cea56306fdb2207035a1d154e96dd 100644 (file)
@@ -550,7 +550,7 @@ struct linux_partition_cache
 struct linux_partition_cache *linux_partition_cache_list;
 
 static int
-linux_find_partition (char *dev, unsigned long sector)
+linux_find_partition (char *dev, grub_disk_addr_t sector)
 {
   size_t len = strlen (dev);
   const char *format;