com php-src: Merge remote-tracking branch 'origin/PHP-7.0.5' into PHP-7.0: ext/standard/url.c

From: Date: Tue, 29 Mar 2016 09:24:33 +0000
Subject: com php-src: Merge remote-tracking branch 'origin/PHP-7.0.5' into PHP-7.0: ext/standard/url.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91524@lists.php.net to get a copy of this message
Commit: 6afa41cf8033796e3ccd4a355bfd443dedf5ff0a Author: Anatol Belski <ab@php.net> Tue, 29 Mar 2016 11:24:33 +0200 Parents: 2e6d70787c93413daecbea529bf0f74fa901d1db 67fbb0631109bf0dd82986a93838de0907a86869 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6afa41cf8033796e3ccd4a355bfd443dedf5ff0a Log: Merge remote-tracking branch 'origin/PHP-7.0.5' into PHP-7.0 * origin/PHP-7.0.5: Fixed bug #71704 php_snmp_error() Format String Vulnerability Fixed bug #71906: AddressSanitizer: negative-size-param (-1) in mbfl_strcut Updated to version 2016.3 (2016c) Fixed bug #71906: AddressSanitizer: negative-size-param (-1) in mbfl_strcut Fixed bug #71527 Buffer over-write in finfo_open with malformed magic file Fix bug #71798 - Integer Overflow in php_raw_url_encode update NEWS Disable huge pages in the Zend allocator by default As per the discussion on internals, this is an expert feature that needs special system-level configuration and care. Added ability to disable huge pages in Zend Memeory Manager through the environment variable USE_ZEND_ALLOC_HUGE_PAGES=0. Fix bug #71860: Require valid paths for phar filenames Fix bug #71860: Require valid paths for phar filenames update NEWS Fixed bug #71704 php_snmp_error() Format String Vulnerability Merge branch 'PHP-5.6' into PHP-7.0 Updated to version 2016.2 (2016b) update libs versions set RC1 versions Going for 5.5.34 Bugs: https://bugs.php.net/71704 https://bugs.php.net/71906 https://bugs.php.net/71527 https://bugs.php.net/71798 https://bugs.php.net/71860 Changed paths: MM ext/standard/url.c Diff: diff --cc ext/standard/url.c index 9963ce6,b7fd188..78ca472 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@@ -608,10 -608,10 +608,10 @@@ PHPAPI size_t php_url_decode(char *str */ PHPAPI zend_string *php_raw_url_encode(char const *s, size_t len) { - register int x, y; + register size_t x, y; zend_string *str; - str = zend_string_alloc(3 * len, 0); + str = zend_string_safe_alloc(3, len, 0, 0); for (x = 0, y = 0; len--; x++, y++) { ZSTR_VAL(str)[y] = (unsigned char) s[x]; #ifndef CHARSET_EBCDIC

« previous php.cvs (#91524) next »