BrotliDecompressBufferStreaming (/ BrotliDecompressStream) setting available_in to 1 #78

Closed
opened 2026-01-29 20:32:01 +00:00 by claunia · 2 comments
Owner

Originally created by @mbevin on GitHub (Dec 21, 2015).

Using brotli from master, sometime when I call BrotliDecompressBufferStreaming (/ BrotliDecompressStream), it sets available_in to 1. This is happening while the result code is BROTLI_RESULT_SUCCESS, so according to the documentation comment, this shouldn't be possible., and it's not clear if+how I should deal with this, since it appears to be a bug I'm guessing I can't make any assumptions as to there being any way to recover from this?

This didn't occur with a month-or-so older master brotli, but that had other issues (BrotliDecompressBufferStreaming always returning huge 4mb chunk sizes)

Originally created by @mbevin on GitHub (Dec 21, 2015). Using brotli from master, sometime when I call BrotliDecompressBufferStreaming (/ BrotliDecompressStream), it sets available_in to 1. This is happening while the result code is BROTLI_RESULT_SUCCESS, so according to the documentation comment, this shouldn't be possible., and it's not clear if+how I should deal with this, since it appears to be a bug I'm guessing I can't make any assumptions as to there being any way to recover from this? This didn't occur with a month-or-so older master brotli, but that had other issues (BrotliDecompressBufferStreaming always returning huge 4mb chunk sizes)
Author
Owner

@eustas commented on GitHub (Dec 21, 2015):

Going to check/fix it soon. And update documentation as well.

@eustas commented on GitHub (Dec 21, 2015): Going to check/fix it soon. And update documentation as well.
Author
Owner

@eustas commented on GitHub (Jun 17, 2016):

Can not reproduce.
Could you attach sample compressed file, please?

@eustas commented on GitHub (Jun 17, 2016): Can not reproduce. Could you attach sample compressed file, please?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#78