Skip to content
Commit 1ea133ac authored by Heinrich Schuchardt's avatar Heinrich Schuchardt
Browse files

efi_loader: sections with zero VirtualSize



In a section header VirtualSize may be zero. This is for instance seen in
the .sbat section of shim. In this case use SizeOfRawData as section size.

Fixes: 9d30a941 ("efi_loader: don't load beyond VirtualSize")
Signed-off-by: default avatarHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: default avatarAsherah Connor <ashe@kivikakk.ee>
parent d6136c63
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment