Skip to content

zlib: decompression throw on truncated input

Check for unexpected end-of-stream error when decompressing. If the output buffer still has space after decompressing and deflate returned Z_OK or Z_BUF_ERROR - that means unexpected end-of-stream. Added test-zlib-truncated.js for the case of truncated input. Fixed the zlib dictionary test to not end the inflate stream on a truncated output (no crc) of deflate See issue #2043 (closed)

Merge request reports

Loading