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
The allocated compData byte array isn't big enough for the worst case.
compData
For a use case I've tested, the worst case is 5 bytes per 16k, not 32k—although in general it's more complicated.
The text was updated successfully, but these errors were encountered:
Using DeflaterOutputStream instead of Deflater would be one solution. It seems to me it's not necessary to preallocate this array.
Sorry, something went wrong.
No branches or pull requests
The allocated
compData
byte array isn't big enough for the worst case.For a use case I've tested, the worst case is 5 bytes per 16k, not 32k—although in general it's more complicated.
The text was updated successfully, but these errors were encountered: