diff --git a/physfs-2.0.3-zlibfix.patch b/physfs-2.0.3-zlibfix.patch new file mode 100644 index 0000000..af2b38f --- /dev/null +++ b/physfs-2.0.3-zlibfix.patch @@ -0,0 +1,13 @@ +diff -up physfs-2.0.3/archivers/zip.c.zlibfix physfs-2.0.3/archivers/zip.c +--- physfs-2.0.3/archivers/zip.c.zlibfix 2017-02-13 11:27:37.271840684 -0500 ++++ physfs-2.0.3/archivers/zip.c 2017-02-13 11:28:30.853501297 -0500 +@@ -327,7 +327,8 @@ static int ZIP_seek(fvoid *opaque, PHYSF + return(0); + + inflateEnd(&finfo->stream); +- memcpy(&finfo->stream, &str, sizeof (z_stream)); ++ inflateCopy(&finfo->stream, &str); ++ inflateEnd(&str); + finfo->uncompressed_position = finfo->compressed_position = 0; + } /* if */ + diff --git a/physfs.spec b/physfs.spec index a21ae83..afcbccb 100644 --- a/physfs.spec +++ b/physfs.spec @@ -1,12 +1,13 @@ Name: physfs Version: 2.0.3 -Release: 8%{?dist} +Release: 9%{?dist} License: zlib Group: System Environment/Libraries Summary: Library to provide abstract access to various archives URL: http://www.icculus.org/physfs/ Source0: http://www.icculus.org/physfs/downloads/physfs-%{version}.tar.bz2 Patch1: physfs-2.0.2-system-lzma-sdk.patch +Patch2: physfs-2.0.3-zlibfix.patch BuildRequires: doxygen, zlib-devel, readline-devel, libtool, cmake # Only needed to build a test program. # BuildRequires: wxGTK-devel @@ -41,6 +42,7 @@ packages with physfs functionality. %prep %setup -q %patch1 -p1 -b .system-lzmasdk +%patch2 -p1 -b .zlibfix rm -rf lzma %build @@ -91,6 +93,10 @@ rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a %{_mandir}/man3/* %changelog +* Mon Feb 13 2017 Tom Callaway - 2.0.3-9 +- fix zlib zip unpacking issue caused by improper zstream copying method + Thanks to Andrei Karas + * Sat Feb 11 2017 Fedora Release Engineering - 2.0.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild