+3b17081b71204ddfaa1cef6f5f9d8747 CVE-2016-3189.patch
00b516f4704d4a7cb50a1d97e6e8e15b bzip2-1.0.6.tar.gz
ab2b0d7367fc6f14a3d943a3861ad2c1 bzip2.patch
--- /dev/null
+--- 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++;
name=bzip2
version=1.0.6
-release=2
+release=3
source=(http://www.bzip.org/$version/$name-$version.tar.gz \
- $name.patch)
+ $name.patch CVE-2016-3189.patch)
build() {
cd $name-$version
patch -Np1 -i $SRC/$name.patch
+ patch -p1 -i $SRC/CVE-2016-3189.patch
sed "s|all: libbz2.a bzip2 bzip2recover test|all: libbz2.a bzip2 bzip2recover|g" -i Makefile