Page MenuHomeFreeBSD

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

Authored by imp on Jul 7 2026, 4:13 AM.
Tags
None
Referenced Files
F168328251: D58069.id.diff
Thu, Aug 27, 3:42 PM
Unknown Object (File)
Mon, Aug 24, 8:13 PM
Unknown Object (File)
Fri, Aug 21, 9:50 AM
Unknown Object (File)
Thu, Aug 20, 12:25 PM
Unknown Object (File)
Tue, Aug 11, 10:45 AM
Unknown Object (File)
Mon, Aug 10, 10:20 AM
Unknown Object (File)
Mon, Aug 10, 10:01 AM
Unknown Object (File)
Mon, Aug 10, 9:58 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