summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2018-03-23 13:40:17 +0100
committerAlex Deymo <deymo@google.com>2018-03-26 13:54:46 +0200
commit338f340c141226410475ae59dcad8c45eea7c658 (patch)
treef6bf65963ae87d2908aad3513e75df08b0eedc3f /Android.bp
parentbf07c41aaed0081e0cd615fb15eae903452b667e (diff)
downloadbsdiff-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.bp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 8d2ec0f..3f49b4a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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",