Skip to content

Commit

Permalink
Fix bug #73634 - grapheme_strpos illegal memory access
Browse files Browse the repository at this point in the history
  • Loading branch information
smalyshev committed Jan 16, 2017
1 parent 2c79096 commit 8c44d07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/intl/grapheme/grapheme_string.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 8c44d07

Please sign in to comment.