* grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
overflow.
This commit is contained in:
parent
ea75312f31
commit
157effb745
2 changed files with 6 additions and 1 deletions
|
@ -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>
|
2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* util/grub-mkimage.c (main): Explicitely flush and sync the output
|
* util/grub-mkimage.c (main): Explicitely flush and sync the output
|
||||||
|
|
|
@ -550,7 +550,7 @@ struct linux_partition_cache
|
||||||
struct linux_partition_cache *linux_partition_cache_list;
|
struct linux_partition_cache *linux_partition_cache_list;
|
||||||
|
|
||||||
static int
|
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);
|
size_t len = strlen (dev);
|
||||||
const char *format;
|
const char *format;
|
||||||
|
|
Loading…
Reference in a new issue