Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decompressing with Zstd set bufferSizePrecheck flag to false #258

Conversation

Nikolajls
Copy link
Contributor

@Nikolajls Nikolajls commented Mar 28, 2024

Closes issue #257 whichs contains more information.

By calling the ZstdNet unwrap method with false for bufferSizePrecheck messages with Zstd compressed data that does not contain the decompressed size in the payload will still work.

A test case has been added that validates it if the removal of the flag is done at some point or switch to excplit true.

We are using version 3.3.0 and would really love if it is feasible to get it bumped in patch for that one :)

image

As part of the Unwrap method in ZstdNet it checks if the compressed payload contains the size of the decompressed payload.
However it is not a guarrantee that it exists in the compressed payload, causing an exception
@Nikolajls Nikolajls changed the title Decompressing with Zstd set Decompressing with Zstd set bufferSizePrecheck flag to false Mar 28, 2024
@Lanayx Lanayx merged commit 4ec1ab6 into fsprojects:develop Mar 28, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants