From: Stanislav Malyshev Date: Mon, 16 Jan 2017 09:18:16 +0000 (-0800) Subject: Fix bug #73634 - grapheme_strpos illegal memory access X-Git-Tag: php-7.0.22RC1~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18b6de7a91859df736781a3ea0bd248b94a9a6df;p=php Fix bug #73634 - grapheme_strpos illegal memory access --- 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) {