Module Name: src
Committed By: martin
Date: Wed Mar 6 07:21:55 UTC 2019
Modified Files:
src/external/bsd/bzip2/dist: bzip2recover.c
Log Message:
Apply fix for CVE-2016-3189 bzip2: heap use after free in bzip2recover
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/bzip2/dist/bzip2recover.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/bzip2/dist/bzip2recover.c
diff -u src/external/bsd/bzip2/dist/bzip2recover.c:1.3 src/external/bsd/bzip2/dist/bzip2recover.c:1.4
--- src/external/bsd/bzip2/dist/bzip2recover.c:1.3 Mon May 7 00:45:47 2012
+++ src/external/bsd/bzip2/dist/bzip2recover.c Wed Mar 6 07:21:55 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: bzip2recover.c,v 1.3 2012/05/07 00:45:47 wiz Exp $ */
+/* $NetBSD: bzip2recover.c,v 1.4 2019/03/06 07:21:55 martin Exp $ */
/*-----------------------------------------------------------*/
/*--- Block recoverer program for bzip2 ---*/
@@ -472,6 +472,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++;