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
F165259700: D58069.diff
Fri, Aug 7, 6:02 AM
Unknown Object (File)
Sun, Aug 2, 11:42 AM
Unknown Object (File)
Fri, Jul 31, 3:51 AM
Unknown Object (File)
Sat, Jul 25, 10:54 PM
Unknown Object (File)
Sat, Jul 25, 5:06 AM
Unknown Object (File)
Fri, Jul 24, 11:39 AM
Unknown Object (File)
Fri, Jul 24, 6:00 AM
Unknown Object (File)
Sun, Jul 19, 3:17 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