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:
Vladimir Serbinenko 2015-11-09 03:24:04 +01:00
parent 4656ced41c
commit cb28250cfc

View file

@ -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;