com php-src: Fix invalid dereference: phpdbg_utils.c

From: Date: Thu, 16 Oct 2014 09:04:45 +0000
Subject: com php-src: Fix invalid dereference: phpdbg_utils.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82558@lists.php.net to get a copy of this message
Commit: 68694e31418501151b6d7996574b31ad60db2dcd Author: Bob Weinand <bobwei9@hotmail.com> Thu, 16 Oct 2014 11:04:45 +0200 Parents: 22f1c8a062d0a89989a005e021ab3f8b1104275e Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=68694e31418501151b6d7996574b31ad60db2dcd Log: Fix invalid dereference Changed paths: M phpdbg_utils.c Diff: diff --git a/phpdbg_utils.c b/phpdbg_utils.c index 4117887..991a6c2 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;

« previous php.cvs (#82558) next »