|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2016, PHP 5.6.24
+- Core:
+ . Fix bug #72138 (Integer Overflow in Length of String-typed ZVAL). (Stas)
+
- OpenSSL:
. Fixed bug #71915 (openssl_random_pseudo_bytes is not fork-safe).
(Jakub Zelenka)
}
Z_STRLEN_P(result) = len + (char_count * (to_len - 1));
+ if (Z_STRLEN_P(result) < 0) {
+ zend_error(E_ERROR, "String size overflow");
+ }
Z_STRVAL_P(result) = target = safe_emalloc(char_count, to_len, len + 1);
Z_TYPE_P(result) = IS_STRING;