com php-src: fix #72143 (preg_replace uses int instea d of size_t on zend_string_allocs): ext/pcr e/php_pcre.c
| From: | Joe Watkins | Date: | Sat, 14 May 2016 07:21:32 +0000 |
| Subject: | com php-src: fix #72143 (preg_replace uses int instea d of size_t on zend_string_allocs): ext/pcr e/php_pcre.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92125@lists.php.net to get a copy of this message | ||
Commit: 90f46f2c5bdd3ab0e5dbc3aec1b3294ea1981abe
Author: Joe Watkins <krakjoe@php.net> Sat, 14 May 2016 08:20:41 +0100
Parents: 4a42fbbbc73aad7427aef5c89974d1833636e082
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=90f46f2c5bdd3ab0e5dbc3aec1b3294ea1981abe
Log:
fix #72143 (preg_replace uses int instead of size_t on zend_string_allocs)
Bugs:
https://bugs.php.net/72143
Changed paths:
M ext/pcre/php_pcre.c
Diff:
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 35ba1a0..9225c0f 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 */