4.35 beta

This commit is contained in:
Igor Pavlov
2006-03-03 00:00:00 +00:00
committed by Kornel Lesiński
parent 0f60a4933b
commit 191cf6781a
16 changed files with 156 additions and 53 deletions

View File

@@ -27,9 +27,9 @@ public:
bool CopyBlock(UInt32 distance, UInt32 len)
{
UInt32 pos = _pos - distance - 1;
if (pos >= _bufferSize)
if (distance >= _pos)
{
if (!_overDict)
if (!_overDict || distance >= _bufferSize)
return false;
pos += _bufferSize;
}