summaryrefslogtreecommitdiffhomepage
path: root/patches/bzip2/CVE-2016-3189.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/bzip2/CVE-2016-3189.patch')
-rw-r--r--patches/bzip2/CVE-2016-3189.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/patches/bzip2/CVE-2016-3189.patch b/patches/bzip2/CVE-2016-3189.patch
new file mode 100644
index 00000000..6622670c
--- /dev/null
+++ b/patches/bzip2/CVE-2016-3189.patch
@@ -0,0 +1,12 @@
+diff --git a/bzip2recover.c b/bzip2recover.c
+index f9de049..d159c92 100644
+--- a/bzip2recover.c
++++ b/bzip2recover.c
+@@ -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++;