Bug #53885 [Opn->Csd]: ZipArchive segfault with FL_UNCHANGED on empty archive

From: Date: Sun, 30 Jan 2011 22:30:57 +0000
Subject: Bug #53885 [Opn->Csd]: ZipArchive segfault with FL_UNCHANGED on empty archive
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-158347@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53885&edit=1 ID: 53885 Updated by: stas@php.net Reported by: stas@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] stas@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] stas@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

« previous php.bugs (#158347) next »