]> granicus.if.org Git - php/commitdiff
Fixed Bug #66321 (ZipArchive::open() ze_obj->filename_len not real)
authorRemi Collet <remi@php.net>
Thu, 19 Dec 2013 09:53:38 +0000 (10:53 +0100)
committerRemi Collet <remi@php.net>
Thu, 19 Dec 2013 09:53:38 +0000 (10:53 +0100)
NEWS
ext/zip/php_zip.c

diff --git a/NEWS b/NEWS
index d3bd822885572966b5124624e4e56bfce23e0bfb..6dea019bc3d0049866606c27e532b5048a65333a 100644 (file)
--- 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:
index 1f435bbb002ed00b47964fbd6e3b1cea9b161c07..31c66a56d4f09c504ea8e150f8918af55eec1253 100644 (file)
@@ -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;
 }