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
Let me think a bit more if we can safely remove the UnexpectedEOF case / make it work for both.
In the meantime, if you want to contribute a fix, feel free to make a PR!
What version of Go are you using (
go version
)?What did you do?
Zstd spec provide skippable-frames - frames that ignores by decompressor and allows to write any user metadata into archive (e.g. seekable table).
If I try to decompress archive with skippable frame, I get io.UnexpectedEOF. Here is an example:
Note, that payload size is not accidental, if it's small and can be processed by ZSTD_decompress (https://github.com/DataDog/zstd/blob/5f14d6af117fa84b37f99d4cde775e6039be6d3b/zstd.go#LL146C16-L146C16),
zstd.Decompress
will return no error. Problem occur then we fallback to read it with stream reader.This is related to #112, but in this case I add a valid zstd frame
The text was updated successfully, but these errors were encountered: