Skip to content

Fix Huffman decompression bug by tracking valid bit count per chunk#2

Open
palguna26 wants to merge 1 commit intomainfrom
palguna26-patch-1
Open

Fix Huffman decompression bug by tracking valid bit count per chunk#2
palguna26 wants to merge 1 commit intomainfrom
palguna26-patch-1

Conversation

@palguna26
Copy link
Copy Markdown
Owner

This PR fixes a data corruption issue where padding bits added during compression were incorrectly decoded during decompression. The fix stores the number of valid bits per compressed chunk and ensures decompression ignores padding bits, guaranteeing bit-exact reconstruction of the original file.

This PR fixes a data corruption issue where padding bits added during compression were incorrectly decoded during decompression. The fix stores the number of valid bits per compressed chunk and ensures decompression ignores padding bits, guaranteeing bit-exact reconstruction of the original file.
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.

1 participant