Skip to content

Conversation

@Xubor
Copy link
Contributor

@Xubor Xubor commented Jan 9, 2019

Fixes #155
inflateSetDictionary() is called at different conditions during normal and raw modes, according to http://zlib.net/manual.html#Advanced
Also providing basic tests for raw inflate with directory, and fix for broken test Inflate with dictionary/spdy dictionary

@puzrin
Copy link
Member

puzrin commented Jan 9, 2019

LGTM. See minor comments about tests. Since this part of code is touched, it would be nice to clean related things. But if you a busy, i can merge as is and do the rest myself. Let me know.

@Xubor
Copy link
Contributor Author

Xubor commented Jan 10, 2019

In susequent commits I have removed the Buffer usage from the relevant test section and added basic tests sufficient to cover all paths of touched code in Inflate().
But beware, that does not guarantee that code for the dictionary format conversion is complete and sound, especially for browser environments. This code was present in the source before, without appropriate tests.

@Xubor
Copy link
Contributor Author

Xubor commented Jan 13, 2019

@puzrin ping?

@puzrin puzrin merged commit 44b1535 into nodeca:master Jan 14, 2019
@Xubor
Copy link
Contributor Author

Xubor commented Jan 14, 2019

Thank you, I appreciate your good work!
As this fixes real bug, I suggest issuing new version.

@puzrin
Copy link
Member

puzrin commented Jan 14, 2019

Published new release with your fixes. Thanks for your help!

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.

inflateRaw with dictionary fails

2 participants