Commit 338f340c authored by Alex Deymo's avatar Alex Deymo
Browse files

Fix brotli decompressor interface usage when reading past the end.

Bortli returns BROTLI_DECODER_RESULT_SUCCESS only when the whole file
was already decompressed, otherwise it will keep returning
BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT until enough output space was
provided overall.

This patch fixes the infinite loop caused when trying to decompress
more bytes than available in the uncompressed stream.

Bug: None
Test: Added unittests.
Change-Id: I3a17dc2e9a0b90659161a9315ce27cdb5e90a894
parent bf07c41a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment