diff options
author | Alex Deymo <deymo@google.com> | 2018-03-12 20:00:04 +0100 |
---|---|---|
committer | Alex Deymo <deymo@google.com> | 2018-03-12 20:06:27 +0100 |
commit | 64d5cd8065d842026b4e0887e8bddc2b89db3a59 (patch) | |
tree | cd493a53ca07011ea71ebe7e4d2e7af1f407cbee /Android.bp | |
parent | 6277fec4beb150e2ad9773314d1e97c8daf24ec8 (diff) | |
download | bsdiff-64d5cd8065d842026b4e0887e8bddc2b89db3a59.tar.gz |
Fix infinite loop when providing a partial input bz2 stream.
The bz2 decompressor expects to read from the input until there's enough
output produced. This patch makes the read fail if we get stuck without
making any progress in the decompression.
Bug: chromium:818174
Test: Added unittest.
Change-Id: Iaee8a2184ec1c5a7dbbe261ec77a39ce247965a3
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -117,6 +117,7 @@ cc_test { "bsdiff_arguments_unittest.cc", "bsdiff_unittest.cc", "bspatch_unittest.cc", + "bz2_decompressor_unittest.cc", "diff_encoder_unittest.cc", "endsley_patch_writer_unittest.cc", "extents_file_unittest.cc", |