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 <[email protected]>
> ---
>  lib/efi_loader/efi_image_loader.c | 31 +++++++++++++++++++++++++++----
>  1 file changed, 27 insertions(+), 4 deletions(-)

Reviewed-by: Asherah Connor <[email protected]>

Reply via email to