wok-next view p7zip/stuff/patches/CVE-2016-9296.patch @ rev 20846

mingw32-gcc: fix CFLAGS, CXXFLAGS as it is not recent GCC and it don't understand something
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jun 23 13:59:48 2018 +0300 (2018-06-23)
parents
children
line source
1 --- ./CPP/7zip/Archive/7z/7zIn.cpp.orig 2016-11-21 01:42:29.460901230 +0000
2 +++ ./CPP/7zip/Archive/7z/7zIn.cpp 2016-11-21 01:42:57.481197725 +0000
3 @@ -1097,7 +1097,8 @@ HRESULT CInArchive::ReadAndDecodePackedS
4 if (CrcCalc(data, unpackSize) != folders.FolderCRCs.Vals[i])
5 ThrowIncorrect();
6 }
7 - HeadersSize += folders.PackPositions[folders.NumPackStreams];
8 + if (folders.PackPositions)
9 + HeadersSize += folders.PackPositions[folders.NumPackStreams];
10 return S_OK;
11 }