"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "CPP/Common/DynLimBuf.cpp" between
p7zip_15.14.1_src_all.tar.gz and p7zip_16.02_src_all.tar.gz

About: p7zip is a command-line file archiver with a high compression ratio (a port of the Windows program 7za.exe).

DynLimBuf.cpp  (p7zip_15.14.1_src_all):DynLimBuf.cpp  (p7zip_16.02_src_all)
skipping to change at line 74 skipping to change at line 74
if (rem < len) if (rem < len)
{ {
len = (unsigned)rem; len = (unsigned)rem;
_error = true; _error = true;
} }
if (_size - _pos < len) if (_size - _pos < len)
{ {
size_t n = _pos + len; size_t n = _pos + len;
if (n - _size < _size) if (n - _size < _size)
{ {
size_t n = _sizeLimit; n = _sizeLimit;
if (n - _size > _size) if (n - _size > _size)
n = _size * 2; n = _size * 2;
} }
Byte *newBuf = (Byte *)MyAlloc(n); Byte *newBuf = (Byte *)MyAlloc(n);
if (!newBuf) if (!newBuf)
{ {
_error = true; _error = true;
return *this; return *this;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS