[PATCH 1/2] test: compression: check with trailing garbage in input

Tom Rini trini at konsulko.com
Thu Jan 12 16:19:06 CET 2023


On Wed, Dec 28, 2022 at 04:53:51PM -0600, Brandon Maier wrote:

> The Linux kernel appends 4 bytes to the end of compressed kernel Images
> containing the uncompressed image size. They are used to make
> self-decompressing Images easier. However for archs that don't support
> self-decompression, like ARM64, U-Boot must be able to decompress the
> image with the garbage data.
> 
> The existing decompressors already support this. This unit test was
> added while working on zstd support as upstream zstd will error if there
> is garbage data in the input buffer, and special care was needed to
> support this.
> 
> Signed-off-by: Brandon Maier <brandon.maier at collins.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

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: <https://lists.denx.de/pipermail/u-boot/attachments/20230112/efea4f73/attachment.sig>


More information about the U-Boot mailing list