summaryrefslogblamecommitdiff
path: root/system/bzip2/CVE-2016-3189.patch
blob: 6622670c91b9ac394f2c1120f32ced095b16a0a9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
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++;