commit | 1ea133acd64eb0099865b0649b1d039ef63787ee | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Sun Aug 29 11:52:44 2021 +0200 |
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | Sat Sep 04 12:03:57 2021 +0200 |
tree | 22554c9103968030f06a72346e96513adbdf4c3e | |
parent | d6136c63ca287574d849865a449ee5fb607a9d99 [diff] |
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: 9d30a941cce5 ("efi_loader: don't load beyond VirtualSize") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Asherah Connor <ashe@kivikakk.ee>