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
F169198232: D58069.id.diff
Mon, Aug 31, 7:18 PM
F169147069: D58069.id.diff
Mon, Aug 31, 2:25 PM
F169006559: D58069.id181659.diff
Mon, Aug 31, 2:56 AM
Unknown Object (File)
Sun, Aug 30, 9:11 PM
Unknown Object (File)
Sun, Aug 30, 8:05 AM
Unknown Object (File)
Sat, Aug 29, 6:47 PM
Unknown Object (File)
Sat, Aug 29, 9:31 AM
Unknown Object (File)
Sat, Aug 29, 2:54 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