com php-src: Merge branch 'PHP-7.0' into PHP-7.1: ext/openssl/openssl.c

From: Date: Sat, 07 Jan 2017 10:15:15 +0000
Subject: com php-src: Merge branch 'PHP-7.0' into PHP-7.1: ext/openssl/openssl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-96593@lists.php.net to get a copy of this message
Commit: 5ae45ef99374b02a676faaad5384ec8c0784d185 Author: Joe Watkins <krakjoe@php.net> Sat, 7 Jan 2017 10:15:15 +0000 Parents: 58273f631b062fa0268fe7824feec92e72f5bda0 b351ec8bafe98d9a005aa6465557f7a2aaf8d8b0 Branches: PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5ae45ef99374b02a676faaad5384ec8c0784d185 Log: Merge branch 'PHP-7.0' into PHP-7.1 * PHP-7.0: Fix memleaks from #1755 and some pre-existing ones Bugs: https://bugs.php.net/1755 Changed paths: MM ext/openssl/openssl.c Diff: diff --cc ext/openssl/openssl.c index 183a586,d7091b8..cb34077 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@@ -871,10 -705,14 +874,16 @@@ static void add_assoc_name_entry(zval } else { add_assoc_stringl(&subitem, sname, (char *)to_add, to_add_len); } + } else { + php_openssl_store_errors(); } + + if (needs_free) { + /* ASN1_STRING_to_UTF8(3): The buffer out should be freed using free(3) */ + free(to_add); + } } + if (key != NULL) { zend_hash_str_update(Z_ARRVAL_P(val), key, strlen(key), &subitem); }

« previous php.cvs (#96593) next »