Re: [PATCH v3 1/2] lib: decompress_unzstd: Limit output size

2020-09-01 Thread Nick Terrell
> On Sep 1, 2020, at 7:26 AM, Paul Cercueil wrote: > > The zstd decompression code, as it is right now, will most likely fail > on 32-bit systems, as the default output buffer size causes the buffer's > end address to overflow. > > Address this issue by setting a sane default to the default ou

[PATCH v3 1/2] lib: decompress_unzstd: Limit output size

2020-09-01 Thread Paul Cercueil
The zstd decompression code, as it is right now, will most likely fail on 32-bit systems, as the default output buffer size causes the buffer's end address to overflow. Address this issue by setting a sane default to the default output size, with a value that won't overflow the buffer's end addres