Patch pcre_preg_replace_alloc_int_to_size_t.patch for PCRE related Bug #72143
Patch version 2016-05-03 12:53 UTC
Return to Bug #72143 |
Download this patch
Patch Revisions:
Developer: burmartke@gmail.com
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 */
|