Fixed bug #72743 (Out-of-bound read in php_stream_filter_create)

This commit is contained in:
Xinchen Hui committed 2016-08-04 19:10:40 +08:00
1 parent 5b547af1ad
commit 3800e1cf97
2 files changed
+6 -2

No files matched your search

+4
View File
@@ -5,6 +5,10 @@ PHP NEWS
- EXIF:
. Fixed bug #72735 (Samsung picture thumb not read (zero size)). (Kalle, Remi)
- Stream:
. Fixed bug #72743 (Out-of-bound read in php_stream_filter_create).
(Loianhtuan)
04 Aug 2016, PHP 7.1.0beta2
- Core:
+2 -2
View File
@@ -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);