Fixed crash when duplicating PHYSFS_Io for zipfiles.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 23 Oct 2017 12:16:51 -0400
changeset 1617 67ca4c4f043e
parent 1615 7ee477e62e86
child 1618 0bbfaf6c5508
Fixed crash when duplicating PHYSFS_Io for zipfiles.
src/physfs_archiver_zip.c
--- a/src/physfs_archiver_zip.c	Wed Sep 27 16:13:00 2017 -0400
+++ b/src/physfs_archiver_zip.c	Mon Oct 23 12:16:51 2017 -0400
@@ -455,6 +455,7 @@
     finfo->io = zip_get_io(origfinfo->io, NULL, finfo->entry);
     GOTO_IF_ERRPASS(!finfo->io, failed);
 
+    initializeZStream(&finfo->stream);
     if (finfo->entry->compression_method != COMPMETH_NONE)
     {
         finfo->buffer = (PHYSFS_uint8 *) allocator.Malloc(ZIP_READBUFSIZE);