From: Bob Weinand Date: Thu, 16 Oct 2014 09:04:45 +0000 (+0200) Subject: Fix invalid dereference X-Git-Tag: php-5.6.3RC1~51^2~52^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68694e31418501151b6d7996574b31ad60db2dcd;p=php Fix invalid dereference --- diff --git a/phpdbg_utils.c b/phpdbg_utils.c index 41178870f4..991a6c2363 100644 --- a/phpdbg_utils.c +++ b/phpdbg_utils.c @@ -1103,7 +1103,7 @@ static void phpdbg_encode_ctrl_chars(char **buf, int *buflen) { len += 4; *tmpptr++ = '&'; *tmpptr++ = '#'; - if ((unsigned int) buf[i] > 10) { + if ((unsigned int) ((*buf)[i]) > 10) { *tmpptr++ = ((*buf)[i] / 10) + '0'; } else { --len;