diff options
author | Rosen Penev <rosenp@gmail.com> | 2018-08-22 19:07:56 -0700 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-08-30 13:16:16 +0200 |
commit | 30758ee10e82a06ac4ed65f15d4cd93989f23fe6 (patch) | |
tree | 8a3a58315c2be78b584cdd1fa3a14ba11b6737db /package/utils/bzip2/patches | |
parent | 3315558870e1b7f8586c2726531e5c98c35093cb (diff) | |
download | upstream-30758ee10e82a06ac4ed65f15d4cd93989f23fe6.tar.gz upstream-30758ee10e82a06ac4ed65f15d4cd93989f23fe6.tar.bz2 upstream-30758ee10e82a06ac4ed65f15d4cd93989f23fe6.zip |
bzip2: Fix CVE-2016-3189
Issue causes a crash with specially crafted bzip2 files.
More info: https://nvd.nist.gov/vuln/detail/CVE-2016-3189
Taken from Fedora.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit f9469efbfa7ce892651f9a6da713eacbef66f177)
Diffstat (limited to 'package/utils/bzip2/patches')
-rw-r--r-- | package/utils/bzip2/patches/010-CVE-2016-3189.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/utils/bzip2/patches/010-CVE-2016-3189.patch b/package/utils/bzip2/patches/010-CVE-2016-3189.patch new file mode 100644 index 0000000000..064f982c48 --- /dev/null +++ b/package/utils/bzip2/patches/010-CVE-2016-3189.patch @@ -0,0 +1,11 @@ +diff -up ./bzip2recover.c.old ./bzip2recover.c +--- ./bzip2recover.c.old 2016-03-22 08:49:38.855620000 +0100 ++++ ./bzip2recover.c 2016-03-30 10:22:27.341430099 +0200 +@@ -457,6 +457,7 @@ Int32 main ( Int32 argc, Char** argv ) + bsPutUChar ( bsWr, 0x50 ); bsPutUChar ( bsWr, 0x90 ); + bsPutUInt32 ( bsWr, blockCRC ); + bsClose ( bsWr ); ++ outFile = NULL; + } + if (wrBlock >= rbCtr) break; + wrBlock++; |