mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-10 10:07:13 -06:00
22.00
This commit is contained in:
4
CPP/7zip/Compress/BitlDecoder.h
Normal file → Executable file
4
CPP/7zip/Compress/BitlDecoder.h
Normal file → Executable file
@@ -155,6 +155,10 @@ public:
|
||||
MY_FORCE_INLINE
|
||||
bool ReadAlignedByte_FromBuf(Byte &b)
|
||||
{
|
||||
if (this->_stream.NumExtraBytes != 0)
|
||||
if (this->_stream.NumExtraBytes >= 4
|
||||
|| kNumBigValueBits - this->_bitPos <= (this->_stream.NumExtraBytes << 3))
|
||||
return false;
|
||||
if (this->_bitPos == kNumBigValueBits)
|
||||
return this->_stream.ReadByte_FromBuf(b);
|
||||
b = (Byte)(_normalValue & 0xFF);
|
||||
|
||||
Reference in New Issue
Block a user