mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +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:
1 parent
4656ced41c
commit
cb28250cfc
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user