Edit report at http://bugs.php.net/bug.php?id=53885&edit=1
ID: 53885 Updated by: s...@php.net Reported by: s...@php.net Summary: ZipArchive segfault with FL_UNCHANGED on empty archive -Status: Open +Status: Closed Type: Bug Package: Zlib related Operating System: * PHP Version: 5.3SVN-2011-01-30 (SVN) -Assigned To: +Assigned To: stas Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2011-01-30 23:28:59] s...@php.net Automatic comment from SVN on behalf of stas Revision: http://svn.php.net/viewvc/?view=revision&revision=307867 Log: fix bug 53885 (ZipArchive segfault with FL_UNCHANGED on empty archive) ------------------------------------------------------------------------ [2011-01-30 23:15:51] s...@php.net Description: ------------ >From Maksymilian Arciemowicz: PoC1: php -r '$nx=new ZipArchive();$nx->open("/dev/null");$nx- >locateName("a",ZIPARCHIVE::FL_UNCHANGED);' PoC2: php -r '$nx=new ZipArchive();$nx->open("empty.zip");$nx->statName("a",ZIPARCHIVE::FL_UNCHANGED);' Segfault in _zip_name_locate. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53885&edit=1