-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lzma: fix handling of small dictionary sizes
As Matt Dainty (@bodgit) reported there is an issue if the header of the LZMA stream is less than the minimum dictionary size of 4096 byte. The specification of the LZMA format says that in that case a dictionary size of 4096 byte should be used, our code returns an error. This commit changes the behavior and adds a simple test case to test for the right behavior. Fixes [#52](#52)
- Loading branch information
Showing
2 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters