diff options
author | Stanislav Malyshev <stas@php.net> | 2017-01-16 01:18:16 -0800 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2017-01-16 01:18:16 -0800 |
commit | 8c44d07fd485a8e8d62bc6e4fe14bec5493ebc58 (patch) | |
tree | c5f69793180d870bc95efe48bcabea6ea4ee5583 | |
parent | 2c7909697a98eb51e3671bc59edc1d7adfa72a0e (diff) | |
download | php-git-8c44d07fd485a8e8d62bc6e4fe14bec5493ebc58.tar.gz |
Fix bug #73634 - grapheme_strpos illegal memory access
-rw-r--r-- | ext/intl/grapheme/grapheme_string.c | 3 |
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) { |