Fix decompression of truncated data
authorNick Terrell <terrelln@fb.com>
Tue, 13 Jun 2017 02:00:54 +0000 (19:00 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 13 Jun 2017 02:13:16 +0000 (19:13 -0700)
commit9883bc3793fc71b8d4c8d1adf6c6fe796e9131e5
tree5db56d073d89eb1ca836e595f3845702a7ced77c
parentba74a196a02f5b75d90225bb3ab7cb441ae58de5
Fix decompression of truncated data

Summary: During decompression, when the data is truncated, `StreamCodec::doUncompress()` loops forever, since it doesn't check forward progress. `Bzip2Codec` does the same.

Reviewed By: chipturner

Differential Revision: D5233052

fbshipit-source-id: 8797a7f06d9afa494eea292a8a5dc980c7571bd0
folly/io/Compression.cpp
folly/io/test/CompressionTest.cpp