From: Tom Rini Date: Mon, 14 Sep 2020 15:40:47 -0400 Subject: [PATCH 1/1] bootm: update image OS image size when decompressing In-Reply-To: <20200830093412.23494-1-xypron.glpk@gmx.de> References: <20200830093412.23494-1-xypron.glpk@gmx.de> Message-ID: <20200914194047.GV5110@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Aug 30, 2020 at 11:34:12AM +0200, Heinrich Schuchardt 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 > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: