We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi ! On version 1.0.5. I found some zip file error by following code: if (len > UINT16_MAX) return UNZ_PARAMERROR;
with #define UINT16_MAX 65535
Plesae check.
Thank you.
The text was updated successfully, but these errors were encountered:
Hello,
could you elaborate? What kind of error are you talking about?
/cc @nmoinvaz
Sorry, something went wrong.
The length parameter or buffer size is too long. It should not exceed 65535.
@nmoinvaz Why did you add this limit, if I may ask?
Because zlib's z_stream_s uses an uInt for avail_in and avail_out which they define as a minimum of 16 bits.
No branches or pull requests
Hi !
On version 1.0.5. I found some zip file error by following code:
if (len > UINT16_MAX)
return UNZ_PARAMERROR;
with #define UINT16_MAX 65535
Plesae check.
Thank you.
The text was updated successfully, but these errors were encountered: