The function decompress_to_vec_zlib_with_limitreturns an error when the limit is set to the correct size of the decompressed data. Is there something wrong with my code or is there a bug in the library? Here is a corresponding test I wrote that fails:
Hi!
The function
decompress_to_vec_zlib_with_limit
returns an error when the limit is set to the correct size of the decompressed data. Is there something wrong with my code or is there a bug in the library? Here is a corresponding test I wrote that fails:Using
miniz_oxide = "^0.5.3"
, no SIMD features. Fails with the messagedata decompression failed when limited to 245760: HasMoreOutput
.The test also failed when given the limit
decompressed_size + 1
ordecompressed_size + 32
. It passed for limitdecompressed_size * 2
.Any ideas?