com php-src: fix #72143 (preg_replace uses int instea d of size_t on zend_string_allocs): NEWS ext/pcre/php_pcre.c

From: Date: Sat, 14 May 2016 07:20:41 +0000
Subject: com php-src: fix #72143 (preg_replace uses int instea d of size_t on zend_string_allocs): NEWS ext/pcre/php_pcre.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92126@lists.php.net to get a copy of this message
Commit: fb951553be0175712f4b757e05004110d7421e04 Author: Joe Watkins <krakjoe@php.net> Sat, 14 May 2016 08:20:41 +0100 Parents: b165114013b690b338a83c606974540e0830c2bd Branches: PHP-7.0 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fb951553be0175712f4b757e05004110d7421e04 Log: fix #72143 (preg_replace uses int instead of size_t on zend_string_allocs) Bugs: https://bugs.php.net/72143 Changed paths: M NEWS M ext/pcre/php_pcre.c Diff: diff --git a/NEWS b/NEWS index d3cd2f5..d102d60 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,9 @@ PHP NEWS - Intl . Fixed bug #64524 (Add intl.use_exceptions to php.ini-*). (Anatol) +- PCRE + . Fixed bug #72143 (preg_replace uses int instead of size_t). (Joe) + - PDO_pgsql: . Fixed bug #71573 (Segfault (core dumped) if paramno beyond bound). (Laruence) diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index f6f8630..ed0f3b3 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1119,8 +1119,8 @@ PHPAPI zend_string *php_pcre_replace_impl(pcre_cache_entry *pce, zend_string *su char **subpat_names; /* Array for named subpatterns */ int num_subpats; /* Number of captured subpatterns */ int size_offsets; /* Size of the offsets array */ - int new_len; /* Length of needed storage */ - int alloc_len; /* Actual allocated length */ + size_t new_len; /* Length of needed storage */ + size_t alloc_len; /* Actual allocated length */ int match_len; /* Length of the current match */ int backref; /* Backreference number */ int start_offset; /* Where the new search starts */

« previous php.cvs (#92126) next »