You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zstd::stream::write::Decoder can only decode small input correctly, while most larger input will either resulted in "Data corrupted" or produce incomplete output.
I think it is due to stream::zio::writer was coded for encoding however there are some unexpected differences between streaming compression and decompression API but I haven't look deeper into it.
This will resulted in error on both v0.13.2 and latest main branch (bfe1e34)
thread 'stream_decode' panicked at src/main.rs:24:39:
called `Result::unwrap()` on an `Err` value: Custom { kind: Other, error: "Data corruption detected" }
zstd::stream::write::Decoder
can only decode small input correctly, while most larger input will either resulted in "Data corrupted" or produce incomplete output.I think it is due to stream::zio::writer was coded for encoding however there are some unexpected differences between streaming compression and decompression API but I haven't look deeper into it.
Reproduction
This will resulted in error on both v0.13.2 and latest main branch (bfe1e34)
While my minimal implementation based on https://github.com/facebook/zstd/blob/cf5e53f618c87c7be88c6f5537c1fb70a45f2c09/examples/streaming_decompression.c can decode them correctly, so it seems that the problem is located in the zio wrapper.
The text was updated successfully, but these errors were encountered: