mirror of
https://github.com/php/php-src.git
synced 2026-04-17 13:01:02 +02:00
Fixed bug #72743 (Out-of-bound read in php_stream_filter_create)
This commit is contained in:
@@ -252,10 +252,10 @@ PHPAPI php_stream_filter *php_stream_filter_create(const char *filtername, zval
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user