com php-src: Fixed Bug #66321 (ZipArchive::open() ze_obj->f ilename_len not real): NEWS ext/zip/php_zip.c

From: Date: Thu, 19 Dec 2013 09:53:38 +0000
Subject: com php-src: Fixed Bug #66321 (ZipArchive::open() ze_obj->f ilename_len not real): NEWS ext/zip/php_zip.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-74526@lists.php.net to get a copy of this message
Commit: 20eb8e4d11d46c399f2920af0a552007d8d5d608 Author: Remi Collet <remi@php.net> Thu, 19 Dec 2013 10:53:38 +0100 Parents: 3624a9ca7a8405f1e3983a34b495d8bb57d9b708 Branches: PHP-5.4 PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=20eb8e4d11d46c399f2920af0a552007d8d5d608 Log: Fixed Bug #66321 (ZipArchive::open() ze_obj->filename_len not real) Bugs: https://bugs.php.net/66321 Changed paths: M NEWS M ext/zip/php_zip.c Diff: diff --git a/NEWS b/NEWS index d3bd822..6dea019 100644 --- a/NEWS +++ b/NEWS @@ -31,6 +31,9 @@ PHP NEWS . Fixed bug #49634 (Segfault throwing an exception in a XSL registered function). (Mike) +- ZIP: + . Fixed Bug #66321 (ZipArchive::open() ze_obj->filename_len not real). (Remi) + 12 Dec 2013, PHP 5.4.23 - Core: diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 1f435bb..31c66a5 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -1537,7 +1537,7 @@ static ZIPARCHIVE_METHOD(open) RETURN_LONG((long)err); } ze_obj->filename = estrdup(resolved_path); - ze_obj->filename_len = filename_len; + ze_obj->filename_len = strlen(resolved_path); ze_obj->za = intern; RETURN_TRUE; }

« previous php.cvs (#74526) next »