diff options
| author | CoprDistGit <infra@openeuler.org> | 2025-01-05 09:09:39 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2025-01-05 09:09:39 +0000 |
| commit | f0cc2d5d65b0d4595195a491111fa221d6d186ae (patch) | |
| tree | 56b2a1f4b6fe9ee584b0be6e7c9d530b7d90fd4c /CVE-2016-9296.patch | |
| parent | 919a5c04b265d82abe8ebb56227f0f9e42dbf625 (diff) | |
automatic import of p7zipopeneuler22.03_LTS_SP4
Diffstat (limited to 'CVE-2016-9296.patch')
| -rw-r--r-- | CVE-2016-9296.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/CVE-2016-9296.patch b/CVE-2016-9296.patch new file mode 100644 index 0000000..6e6fc9f --- /dev/null +++ b/CVE-2016-9296.patch @@ -0,0 +1,25 @@ +From: Robert Luberda <robert@debian.org> +Date: Sat, 19 Nov 2016 08:48:08 +0100 +Subject: Fix nullptr dereference (CVE-2016-9296) + +Patch taken from https://sourceforge.net/p/p7zip/bugs/185/ + +Signed-off-by: André Hentschel <nerv@dawncrow.de> +--- + CPP/7zip/Archive/7z/7zIn.cpp | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/CPP/7zip/Archive/7z/7zIn.cpp b/CPP/7zip/Archive/7z/7zIn.cpp +index b0c6b98..7c6dde2 100644 +--- a/CPP/7zip/Archive/7z/7zIn.cpp ++++ b/CPP/7zip/Archive/7z/7zIn.cpp +@@ -1097,7 +1097,8 @@ HRESULT CInArchive::ReadAndDecodePackedStreams( + 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; + } + |
