summaryrefslogtreecommitdiff
path: root/bz2_decompressor_unittest.cc
AgeCommit message (Collapse)Author
2018-03-12Fix infinite loop when providing a partial input bz2 stream.Alex Deymo
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