mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
Decompression by JNI failed #373
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wlwenming on GitHub (Feb 7, 2021).
Decompressing did not complete, expected to return 4 (OK), but returned 2 (NEEDS_MORE_INPUT).
The debugging information is as follows:

Please help to analyze the reasons. Thanks.
@wlwenming commented on GitHub (Feb 8, 2021):
I found a solution.Make sure the status is correct.
@eustas commented on GitHub (Jun 23, 2021):
So the situation happens when output size is exactly the power of 2.
In this case native decoder reports that output is ready.
Decoder saves the remaining part of last byte, which contains the "no more input" section (it is just 2 bits IIRC).
"take output" does not flip "is finished" state.
Going to think a little bit more, on what the right fix should be.
Next invocation to "process" would have detected that input is over...
@eustas commented on GitHub (Jun 24, 2021):
Pinpointed the problem. Fix is coming.
@slandelle commented on GitHub (Jul 24, 2021):
@eustas gentle ping
@eustas commented on GitHub (Jul 29, 2021):
Should be fixed with the latest update.
@slandelle commented on GitHub (Jul 30, 2021):
Thanks a bunch!