diff options
author | Alex Deymo <deymo@google.com> | 2018-03-23 13:40:17 +0100 |
---|---|---|
committer | Alex Deymo <deymo@google.com> | 2018-03-26 13:54:46 +0200 |
commit | 338f340c141226410475ae59dcad8c45eea7c658 (patch) | |
tree | f6bf65963ae87d2908aad3513e75df08b0eedc3f /Android.bp | |
parent | bf07c41aaed0081e0cd615fb15eae903452b667e (diff) | |
download | bsdiff-338f340c141226410475ae59dcad8c45eea7c658.tar.gz |
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
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -113,6 +113,7 @@ cc_test { test_suites: ["device-tests"], srcs: [ "brotli_compressor_unittest.cc", + "brotli_decompressor_unittest.cc", "bsdiff_arguments.cc", "bsdiff_arguments_unittest.cc", "bsdiff_unittest.cc", |