]> granicus.if.org Git - php/commit
Fix #70752: Depacking with wrong password leaves 0 length files
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 5 Sep 2016 22:28:28 +0000 (00:28 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 5 Sep 2016 23:03:46 +0000 (01:03 +0200)
commit8aad3131a1d00e191db1b3b27aed6e7fae269f13
treeef5770487a027f145e140fb9e887b7a918f27f04
parentdd6da58fac6532d72c9e699a45db2b52d68d4c50
Fix #70752: Depacking with wrong password leaves 0 length files

We should not open the output stream before we have tried to open the
archive entry, as failing the latter could leave an empty file behind.
NEWS
ext/zip/php_zip.c
ext/zip/tests/bug70752.phpt [new file with mode: 0644]
ext/zip/tests/bug70752.zip [new file with mode: 0644]