bzip2: Fix CVE-2016-3189
[openwrt/openwrt.git] / package / utils / bzip2 / patches / 010-CVE-2016-3189.patch
1 diff -up ./bzip2recover.c.old ./bzip2recover.c
2 --- ./bzip2recover.c.old 2016-03-22 08:49:38.855620000 +0100
3 +++ ./bzip2recover.c 2016-03-30 10:22:27.341430099 +0200
4 @@ -457,6 +457,7 @@ Int32 main ( Int32 argc, Char** argv )
5 bsPutUChar ( bsWr, 0x50 ); bsPutUChar ( bsWr, 0x90 );
6 bsPutUInt32 ( bsWr, blockCRC );
7 bsClose ( bsWr );
8 + outFile = NULL;
9 }
10 if (wrBlock >= rbCtr) break;
11 wrBlock++;