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
Unknown Object (File)
Fri, Sep 4, 2:46 AM
Unknown Object (File)
Thu, Sep 3, 9:06 PM
Unknown Object (File)
Thu, Sep 3, 5:20 PM
Unknown Object (File)
Wed, Sep 2, 9:13 PM
Unknown Object (File)
Wed, Sep 2, 8:06 PM
Unknown Object (File)
Wed, Sep 2, 8:31 AM
Unknown Object (File)
Wed, Sep 2, 6:46 AM
Unknown Object (File)
Tue, Sep 1, 9:01 PM
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