]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-5.5' into PHP-5.6
authorStanislav Malyshev <stas@php.net>
Tue, 29 Sep 2015 03:44:28 +0000 (20:44 -0700)
committerStanislav Malyshev <stas@php.net>
Tue, 29 Sep 2015 03:44:28 +0000 (20:44 -0700)
* PHP-5.5:
  fix memory leak
  FIx bug #70433 - Uninitialized pointer in phar_make_dirstream when zip entry filename is "/"

Conflicts:
ext/phar/dirstream.c

1  2 
ext/phar/dirstream.c
ext/phar/util.c

index e863509b6c072fbd3b4b32f479b65972d2234ed7,4728e29f9c9303d3e5c206498744427da704bd79..e6926ce1541e43cf2ba275a58f0008f140778cb4
@@@ -198,7 -207,7 +198,7 @@@ static php_stream *phar_make_dirstream(
        zend_hash_internal_pointer_reset(manifest);
  
        while (FAILURE != zend_hash_has_more_elements(manifest)) {
-               if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(manifest, &str_key, &keylen, &unused, 0, NULL)) {
 -              if (HASH_KEY_IS_STRING != zend_hash_get_current_key_ex(manifest, &key, &keylen, &unused, 0, NULL)) {
++              if (HASH_KEY_IS_STRING != zend_hash_get_current_key_ex(manifest, &str_key, &keylen, &unused, 0, NULL)) {
                        break;
                }
  
diff --cc ext/phar/util.c
Simple merge