summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2017-01-16 01:18:16 -0800
committerStanislav Malyshev <stas@php.net>2017-06-20 13:29:57 -0700
commit18b6de7a91859df736781a3ea0bd248b94a9a6df (patch)
treea4161f11332218230c838e1e06c8ed78d20444af /ext
parent14c422a32fc13284cbbc6a9ae9b65cc6081dda1f (diff)
downloadphp-git-18b6de7a91859df736781a3ea0bd248b94a9a6df.tar.gz
Fix bug #73634 - grapheme_strpos illegal memory access
Diffstat (limited to 'ext')
-rw-r--r--ext/intl/grapheme/grapheme_string.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/intl/grapheme/grapheme_string.c b/ext/intl/grapheme/grapheme_string.c
index f69500429d..ad75b3580b 100644
--- a/ext/intl/grapheme/grapheme_string.c
+++ b/ext/intl/grapheme/grapheme_string.c
@@ -110,7 +110,8 @@ PHP_FUNCTION(grapheme_strpos)
size_t haystack_len, needle_len;
const char *found;
zend_long loffset = 0;
- int32_t offset = 0, noffset = 0;
+ int32_t offset = 0;
+ size_t noffset = 0;
zend_long ret_pos;
if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss|l", &haystack, &haystack_len, &needle, &needle_len, &loffset) == FAILURE) {