summaryrefslogtreecommitdiff
path: root/app-arch/p7zip/files
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2018-05-08 11:54:37 -0500
committerMatthew Thode <prometheanfire@gentoo.org>2018-05-08 11:55:35 -0500
commit1ec1595e6328e5f68dd1ce669e2841e052360c55 (patch)
tree7018c1dbbf88d323927878c4aafa631a2215714a /app-arch/p7zip/files
parent149457234dade0c0bac3849025904d480b2f3f55 (diff)
downloadgentoo-1ec1595e6328e5f68dd1ce669e2841e052360c55.tar.gz
gentoo-1ec1595e6328e5f68dd1ce669e2841e052360c55.tar.xz
app-arch/p7zip: adding 2016 cve
Package-Manager: Portage-2.3.27, Repoman-2.3.9
Diffstat (limited to 'app-arch/p7zip/files')
-rw-r--r--app-arch/p7zip/files/CVE-2016-9296.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/app-arch/p7zip/files/CVE-2016-9296.patch b/app-arch/p7zip/files/CVE-2016-9296.patch
new file mode 100644
index 00000000000..773f92a46e0
--- /dev/null
+++ b/app-arch/p7zip/files/CVE-2016-9296.patch
@@ -0,0 +1,12 @@
+--- ./CPP/7zip/Archive/7z/7zIn.cpp.orig 2016-11-21 01:42:29.460901230 +0000
++++ ./CPP/7zip/Archive/7z/7zIn.cpp 2016-11-21 01:42:57.481197725 +0000
+@@ -1097,7 +1097,8 @@ HRESULT CInArchive::ReadAndDecodePackedS
+ if (CrcCalc(data, unpackSize) != folders.FolderCRCs.Vals[i])
+ ThrowIncorrect();
+ }
+- HeadersSize += folders.PackPositions[folders.NumPackStreams];
++ if (folders.PackPositions)
++ HeadersSize += folders.PackPositions[folders.NumPackStreams];
+ return S_OK;
+ }
+