[PATCH] efi_loader: sections with zero VirtualSize

Asherah Connor ashe at kivikakk.ee
Mon Aug 30 00:56:04 CEST 2021


On 21/08/29 01:08:p, Heinrich Schuchardt wrote:
> 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 at canonical.com>
> ---
>  lib/efi_loader/efi_image_loader.c | 31 +++++++++++++++++++++++++++----
>  1 file changed, 27 insertions(+), 4 deletions(-)

Reviewed-by: Asherah Connor <ashe at kivikakk.ee>



More information about the U-Boot mailing list