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
F175984933: D58069.diff
Thu, Oct 15, 1:05 AM
Unknown Object (File)
Mon, Oct 12, 2:47 AM
Unknown Object (File)
Sat, Oct 10, 1:31 PM
Unknown Object (File)
Wed, Oct 7, 12:40 AM
Unknown Object (File)
Tue, Oct 6, 7:18 PM
Unknown Object (File)
Tue, Oct 6, 3:11 PM
Unknown Object (File)
Tue, Oct 6, 1:19 AM
Unknown Object (File)
Tue, Oct 6, 1:19 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 74572
Build 71455: arc lint + arc unit