diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-04-11 00:03:14 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-04-11 00:03:14 -0400 |
commit | 60a68714dc3587e94fa5f428eff8e8789ea72ad8 (patch) | |
tree | 5f6ed9ddf57c7c49c5e3f0e3ca4e2dfe5374185b /zinflate.cpp | |
parent | 8119a038268144827a9fabb751d33d5dd22fa296 (diff) | |
download | cryptopp-git-60a68714dc3587e94fa5f428eff8e8789ea72ad8.tar.gz |
Fixed "Inflator: unexpected end of compressed block" (Issue 112)
Diffstat (limited to 'zinflate.cpp')
-rw-r--r-- | zinflate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zinflate.cpp b/zinflate.cpp index b0117ce9..11cbbff0 100644 --- a/zinflate.cpp +++ b/zinflate.cpp @@ -209,7 +209,7 @@ inline unsigned int HuffmanDecoder::Decode(code_t code, /* out */ value_t &value bool HuffmanDecoder::Decode(LowFirstBitReader &reader, value_t &value) const
{
bool result = reader.FillBuffer(m_maxCodeBits);
- if(!result) return false;
+ CRYPTOPP_UNUSED(result); // assert(result);
unsigned int codeBits = Decode(reader.PeekBuffer(), value);
if (codeBits > reader.BitsBuffered())
|