From: Vladimir 'phcoder' Serbinenko Date: Mon, 9 May 2011 16:46:51 +0000 (+0200) Subject: * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible X-Git-Tag: 1.99~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=157effb745b4e520327bde2ac3de131f766da095;p=thirdparty%2Fgrub.git * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible overflow. --- diff --git a/ChangeLog b/ChangeLog index bec788b3c..532a3a3b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-05-09 Vladimir Serbinenko + + * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible + overflow. + 2011-05-09 Vladimir Serbinenko * util/grub-mkimage.c (main): Explicitely flush and sync the output diff --git a/grub-core/kern/emu/hostdisk.c b/grub-core/kern/emu/hostdisk.c index 63bca37ee..085048e86 100644 --- a/grub-core/kern/emu/hostdisk.c +++ b/grub-core/kern/emu/hostdisk.c @@ -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;