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

Intial commit to address 3090. Added support to decompress empty block. #3118

Merged
merged 4 commits into from
Jul 14, 2022

Conversation

udayanbapat
Copy link
Contributor

As discussed with @terrelln, added a fix to address issue 3090 (#3090) to decompress minimum length 0 size block. As part of change MIN_CBLOCK_SIZE was changed from 3 to 2. However, since this macro was also used on the compression side, the logic was corrected by compensating with additional one. For clarity purposes, I have put a TODO comment and kept the logic as ..+1+1" instead of just "...+2".

@udayanbapat
Copy link
Contributor Author

I tested the fix manually as well as running 'make test' and 'make check' the newly added test passes correctly.

Addressed review comments for the case of 'set_basic'
lib/decompress/zstd_decompress_block.c Outdated Show resolved Hide resolved
lib/decompress/zstd_decompress_block.c Outdated Show resolved Hide resolved
lib/decompress/zstd_decompress_block.c Show resolved Hide resolved
udayanbapat and others added 2 commits May 18, 2022 13:53
Co-authored-by: Nick Terrell <nickrterrell@gmail.com>
Co-authored-by: Nick Terrell <nickrterrell@gmail.com>
@terrelln
Copy link
Contributor

Thanks for the PR @udayanbapat!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants