mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-24 19:01:43 +00:00
cbfs: Fix corner case and compilation with recdent gcc
Accept the header to touch the jump address at 0xfffffff0. Fix compilation for 64-bit EFI with recent GCC.
This commit is contained in:
parent
4656ced41c
commit
cb28250cfc
@ -352,7 +352,7 @@ init_cbfsdisk (void)
|
||||
reading ROMs through controller directly.
|
||||
*/
|
||||
if (ptr < 0xff000000
|
||||
|| 0xffffffff - ptr < sizeof (*head) + 0x10
|
||||
|| 0xffffffff - ptr < (grub_uint32_t) sizeof (*head) + 0xf
|
||||
|| !validate_head (head))
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user