commit | cd86dc941d93f6efa2f5b01a051898dfd089eeaa | [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 | 08d4392b1a51b8cdb894fff78a4100cb0114c7d9 [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>