1
0
mirror of synced 2025-04-21 22:25:55 +03:00
bdenhollander ee625232a4
Fix successful decompress reported as Error::Read (#1612)
* Fix successful decompress reported as Error::Read

Streams less than 4096 bytes are sometimes reported as failed reads because stream_.avail_in is not reduced to 0. The next iteration of the loop finds `prev_avail_in == strm_.avail_in` and return false. `ret = inflate(...)` returns Z_STREAM_END on the first iteration of the loop indicating that inflate is finished. This fix prevents the second iteration of the loop from failing.

* Fix successful decompress reported as Error::Read

- Add unit tests for raw deflate that illustrates the decompression failure when there are extra trailing bytes
2023-07-11 18:35:27 -04:00
..
2023-03-08 17:03:20 -05:00
2021-07-17 13:21:03 -04:00
2022-02-09 17:16:18 -05:00
2021-09-11 14:26:48 -04:00
2021-09-11 14:26:48 -04:00
2021-09-11 14:26:48 -04:00
2023-03-05 21:35:35 -05:00
2017-12-29 22:34:59 -05:00
2023-04-04 07:12:15 -07:00
2023-03-08 17:03:20 -05:00
2013-07-04 18:18:52 -04:00