]> git.baikalelectronics.ru Git - uboot.git/commit
bootm: update image OS image size when decompressing
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 30 Aug 2020 09:34:12 +0000 (11:34 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 11 Sep 2020 21:13:56 +0000 (17:13 -0400)
commit2e5e49427616b3a7222dab75299dcadd9e813e55
treec79e2b5d97120df3eee7bc698798c2080bd03872
parentfe846ccf68839864bae1b72b2a17ffba8ba64e5c
bootm: update image OS image size when decompressing

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@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/bootm.c