. Fixed bug #73118 (is_callable callable name reports misleading value for
anonymous classes). (Adam Saponara)
+- Streams:
+ . Fixed bug #73496 (Invalid memory access in zend_inline_hash_func).
+ (Laruence)
+
16 Feb 2017 PHP 7.0.16
HashTable *filter_hash = (FG(stream_filters) ? FG(stream_filters) : &stream_filters_hash);
php_stream_filter_factory *factory = NULL;
php_stream_filter *filter = NULL;
- int n;
+ size_t n;
char *period;
- n = (int)strlen(filtername);
+ n = strlen(filtername);
if (NULL != (factory = zend_hash_str_find_ptr(filter_hash, filtername, n))) {
filter = factory->create_filter(filtername, filterparams, persistent);
/* try a wildcard */
char *wildname;
- wildname = emalloc(n+3);
+ wildname = safe_emalloc(1, n, 3);
memcpy(wildname, filtername, n+1);
period = wildname + (period - filtername);
while (period && !filter) {