summary refs log blame commit diff
path: root/pkgs/tools/compression/bzip2/CVE-2016-3189.patch
blob: eff324b3250318742cd6c3b16df7616c59d1ff06 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                  
diff --git a/bzip2recover.c b/bzip2recover.c
index f9de049..252c1b7 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++;