Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/i486-stage1/bzip2/fix-heap-use-after-free-bzip2recover.patch
blob: 18d193b78e361189fb331ee2bda43b9a92a03e15 (plain)
1
2
3
4
5
6
7
8
9
10
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
@@ -458,6 +458,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++;