summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2018-03-12 20:00:04 +0100
committerAlex Deymo <deymo@google.com>2018-03-12 20:06:27 +0100
commit64d5cd8065d842026b4e0887e8bddc2b89db3a59 (patch)
treecd493a53ca07011ea71ebe7e4d2e7af1f407cbee /Android.bp
parent6277fec4beb150e2ad9773314d1e97c8daf24ec8 (diff)
downloadbsdiff-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.bp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 7390a11..8d2ec0f 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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",