Fixed "Inflator: unexpected end of compressed block" (Issue 112)

pull/157/head
Jeffrey Walton 2016-04-11 00:03:14 -04:00
parent 8119a03826
commit 60a68714dc
1 changed files with 1 additions and 1 deletions

View File

@ -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())