[PATCH 1/1] bootm: update image OS image size when decompressing
Simon Glass
sjg at chromium.org
Mon Aug 31 15:41:52 CEST 2020
On Sun, 30 Aug 2020 at 03:34, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> In bootm_load_os() the OS image is decompressed. In later stages of the
> boot process we need the decompressed size of the image.
>
> Update images->os.image_len after decompression.
>
> Passing the correct size is necessary if we want to check loaded EFI
> binararies for file truncation by comparing the loaded size to the header
> field SizeOfImage.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
> common/bootm.c | 2 ++
> 1 file changed, 2 insertions(+)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list