Skip to content

Commit

Permalink
Fixed crash when duplicating PHYSFS_Io for zipfiles.
Browse files Browse the repository at this point in the history
(transplanted from 67ca4c4f043ecf050c395e767845733512c83de2)
  • Loading branch information
icculus committed Oct 23, 2017
1 parent 12b7a80 commit e290b8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/physfs_archiver_zip.c
Expand Up @@ -455,6 +455,7 @@ static PHYSFS_Io *ZIP_duplicate(PHYSFS_Io *io)
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);
Expand Down

0 comments on commit e290b8d

Please sign in to comment.