Messages in this thread | | | From | Linus Walleij <> | Date | Wed, 12 Apr 2023 23:42:25 +0200 | Subject | Re: [PATCH 1/3] ARM: compressed: Pass the actual output length to the decompressor |
| |
On Wed, Apr 12, 2023 at 11:21 PM Jonathan Neuschäfer <j.neuschaefer@gmx.net> wrote:
> ZSTD writes outside of the space that is necessary for the uncompressed > data, when it is told it has unlimited output length. To fix this, pass > the actual output length (the length of the uncompressed kernel) to the > decompressor. > > The uncompressed length is already stored as a little endian 32-bit > constant before the input_data_end symbol. > > Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Really neat fix! Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours, Linus Walleij
| |