diff options
author | Stanislav Malyshev <stas@php.net> | 2017-01-16 01:18:16 -0800 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-06-21 16:52:14 +0200 |
commit | 5189e43b6dfe1774f8876214d2c583a64a446226 (patch) | |
tree | 17e1a7bcb60a14252b2577a6d4eec1541e6e7696 | |
parent | e2021d41f776d832a07112dd32c6a5d27259ac0a (diff) | |
download | php-git-5189e43b6dfe1774f8876214d2c583a64a446226.tar.gz |
Fix bug #73634 - grapheme_strpos illegal memory access
(cherry picked from commit 18b6de7a91859df736781a3ea0bd248b94a9a6df)
-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) { |