]> granicus.if.org Git - php/commitdiff
Merge remote-tracking branch 'origin/PHP-7.0.5' into PHP-7.0
authorAnatol Belski <ab@php.net>
Tue, 29 Mar 2016 09:24:33 +0000 (11:24 +0200)
committerAnatol Belski <ab@php.net>
Tue, 29 Mar 2016 09:24:33 +0000 (11:24 +0200)
* 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

1  2 
ext/standard/url.c

index 9963ce60f4424e58f5ccbb735f189327e9b1282d,b7fd18869936d57b77649351ffa4fca05eec432f..78ca472a2bb2ffd8f3fdb8d31f928c9bd943396a
@@@ -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