bunzip2: fix runCnt overflow from bug 10431
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 22 Oct 2017 16:23:23 +0000 (18:23 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 22 Oct 2017 16:23:23 +0000 (18:23 +0200)
commit0402cb32df015d9372578e3db27db47b33d5c7b0
tree42434dd16d98f1acd0f53ad5da9673e00214a4fe
parent25f3b737dc04bb84fb593ace33a5c360163bd4e4
bunzip2: fix runCnt overflow from bug 10431

This particular corrupted file can be dealth with by using "unsigned".
If there will be cases where it genuinely overflows, there is a disabled
code to deal with that too.

function                                             old     new   delta
get_next_block                                      1678    1667     -11

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/libarchive/decompress_bunzip2.c