nixpkgs/pkgs/tools/compression/bzip2/CVE-2016-3189.patch
Graham Christensen 390f6a985b
Revert "Revert "bzip2: patch for CVE-2016-3189""
This reverts commit 6393ca650eb9ef5f045905600c4256a0d0bf20b7.
2016-11-30 19:30:52 -05:00

13 lines
420 B
Diff

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++;