mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-06 06:27:54 +00:00
ieee1275: fix signed comparison
This commit is contained in:
parent
1b782e902e
commit
94c56a4c65
@ -49,7 +49,7 @@ grub_machine_mmap_iterate (grub_memory_hook_t hook, void *hook_data)
|
||||
sizeof available, &available_size))
|
||||
return grub_error (GRUB_ERR_UNKNOWN_DEVICE,
|
||||
"couldn't examine /memory/available property");
|
||||
if (available_size > sizeof (available))
|
||||
if (available_size < 0 || (grub_size_t) available_size > sizeof (available))
|
||||
return grub_error (GRUB_ERR_UNKNOWN_DEVICE,
|
||||
"/memory response buffer exceeded");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user