diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2021-08-29 11:52:44 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-09-04 12:03:57 +0200 |
commit | 1ea133acd64eb0099865b0649b1d039ef63787ee (patch) | |
tree | 22554c9103968030f06a72346e96513adbdf4c3e /lib/efi_loader/efi_var_common.c | |
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>
Diffstat (limited to 'lib/efi_loader/efi_var_common.c')
0 files changed, 0 insertions, 0 deletions