ieee1275: fix signed comparison
This commit is contained in:
parent
1b782e902e
commit
94c56a4c65
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ grub_machine_mmap_iterate (grub_memory_hook_t hook, void *hook_data)
|
||||||
sizeof available, &available_size))
|
sizeof available, &available_size))
|
||||||
return grub_error (GRUB_ERR_UNKNOWN_DEVICE,
|
return grub_error (GRUB_ERR_UNKNOWN_DEVICE,
|
||||||
"couldn't examine /memory/available property");
|
"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,
|
return grub_error (GRUB_ERR_UNKNOWN_DEVICE,
|
||||||
"/memory response buffer exceeded");
|
"/memory response buffer exceeded");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue