mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
overflow.
This commit is contained in:
1 parent
ea75312f31
commit
157effb745
2 files changed
+6
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user