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

Windowsize should be in the range 8..15 #23

Open
riyafa opened this issue Jan 3, 2019 · 0 comments
Open

Windowsize should be in the range 8..15 #23

riyafa opened this issue Jan 3, 2019 · 0 comments

Comments

@riyafa
Copy link

riyafa commented Jan 3, 2019

According to zlib manual:

The windowBits parameter is the base two logarithm of the window size (the size of the history buffer). It should be in the range 8..15 for this version of the library.

However jzlib supports only in the range 9..15 as in this line:

if(bits < 9 || bits > 15){
return Z_STREAM_ERROR;
}

If windowbit is 8 it returns an error which is incorrect.

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

No branches or pull requests

1 participant