com php-src: Fix calculation as sync with 48cee6d1: ext/pcre/php_pcre.c
| From: | Anatol Belski | Date: | Mon, 13 Nov 2017 23:01:52 +0000 |
| Subject: | com php-src: Fix calculation as sync with 48cee6d1: ext/pcre/php_pcre.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100217@lists.php.net to get a copy of this message | ||
Commit: e8ac7d8dd507b3fafcb4bb25ecf35dafb5c9b2c5
Author: Anatol Belski <ab@php.net> Mon, 13 Nov 2017 23:01:43 +0100
Parents: 81dd6de3a9ae4ddd5a7652258301b67d175986f7
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e8ac7d8dd507b3fafcb4bb25ecf35dafb5c9b2c5
Log:
Fix calculation as sync with 48cee6d1
Changed paths:
M ext/pcre/php_pcre.c
Diff:
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 1da619a..d528105 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -842,7 +842,7 @@ PHPAPI pcre2_match_data *php_pcre_create_match_data(uint32_t capture_count, pcre
rc = pcre2_pattern_info(re, PCRE2_INFO_CAPTURECOUNT, &capture_count);
}
- if (rc >= 0 && (capture_count + 1) * 3 <= PHP_PCRE_PREALLOC_MDATA_SIZE) {
+ if (rc >= 0 && capture_count + 1 <= PHP_PCRE_PREALLOC_MDATA_SIZE) {
return mdata;
}