Make sure that decompression checks for the case that bzip2 returns
authorReid Spencer <rspencer@reidspencer.com>
Fri, 13 May 2005 07:05:37 +0000 (07:05 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 13 May 2005 07:05:37 +0000 (07:05 +0000)
commitfe07581d789c0a1b329dd8956e3b68e71ae9fcfa
tree4e0c84c67620876025b4807685a555c5b793df73
parentefd9168eae647b3a52d5acef04d9e042d00f2ea3
Make sure that decompression checks for the case that bzip2 returns
BZ_OK (meaning more data is expected) but there is no more input data. In
this case, the input file is probably truncated. Generate an exception that
indicates this case when its detected.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21926 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Compressor.cpp