Page MenuHomeFreeBSD

loader.efi: Fix off by one error in size of the virtual disk
ClosedPublic

Authored by imp on Tue, Jul 7, 4:13 AM.
Tags
None
Referenced Files
F162209491: D58069.diff
Fri, Jul 10, 10:30 PM
F162204050: D58069.id181415.diff
Fri, Jul 10, 9:10 PM
Unknown Object (File)
Thu, Jul 9, 8:41 PM
Unknown Object (File)
Thu, Jul 9, 12:44 AM
Subscribers

Details

Summary

The end address is the final byte in the array, not one byte past the
end of the array, so we need to add 1 to get the full length.

Fixes: 59219fc76a4b ("loader.efi: efiblk_memdisk_preload passes the VirtualDisks to FreeBSD")
Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable