com php-src: Fixed bug #72743 (Out-of-bound read in php_stream_filter_create): NEWS main/streams/filt er.c

From: Date: Thu, 04 Aug 2016 11:10:40 +0000
Subject: com php-src: Fixed bug #72743 (Out-of-bound read in php_stream_filter_create): NEWS main/streams/filt er.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-93611@lists.php.net to get a copy of this message
Commit: 3800e1cf970ce78c565e98803f799fa50737ecc6 Author: Xinchen Hui <laruence@gmail.com> Thu, 4 Aug 2016 19:10:40 +0800 Parents: 5b547af1ad42e2372a8c6a0aff3e168c2c101452 Branches: PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3800e1cf970ce78c565e98803f799fa50737ecc6 Log: Fixed bug #72743 (Out-of-bound read in php_stream_filter_create) Bugs: https://bugs.php.net/72743 Changed paths: M NEWS M main/streams/filter.c Diff: diff --git a/NEWS b/NEWS index 10961f2..c20b299 100644 --- a/NEWS +++ b/NEWS @@ -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: diff --git a/main/streams/filter.c b/main/streams/filter.c index d063c1a..e97dea9 100644 --- a/main/streams/filter.c +++ b/main/streams/filter.c @@ -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);

« previous php.cvs (#93611) next »