com php-src: Fix unsigned comparison: ext/standard/filters.c

From: Date: Fri, 17 Nov 2017 17:53:37 +0000
Subject: com php-src: Fix unsigned comparison: ext/standard/filters.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-100290@lists.php.net to get a copy of this message
Commit: 80b926d24d7aff0b0135532828a7543964cdb92f Author: Anatol Belski <ab@php.net> Fri, 17 Nov 2017 18:53:37 +0100 Parents: 70427b11072815ac4b7b9cc0c511b2aa5f401b93 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=80b926d24d7aff0b0135532828a7543964cdb92f Log: Fix unsigned comparison Changed paths: M ext/standard/filters.c Diff: diff --git a/ext/standard/filters.c b/ext/standard/filters.c index afdf743..3a9daf2 100644 --- a/ext/standard/filters.c +++ b/ext/standard/filters.c @@ -822,7 +822,7 @@ static php_conv_err_t php_conv_qprint_encode_convert(php_conv_qprint_encode *ins } } - if (lb_ptr >= lb_cnt && icnt <= 0) { + if (lb_ptr >= lb_cnt && icnt == 0) { break; } @@ -1028,7 +1028,7 @@ static php_conv_err_t php_conv_qprint_decode_convert(php_conv_qprint_decode *ins for (;;) { switch (scan_stat) { case 0: { - if (icnt <= 0) { + if (icnt == 0) { goto out; } if (*ps == '=') { @@ -1045,7 +1045,7 @@ static php_conv_err_t php_conv_qprint_decode_convert(php_conv_qprint_decode *ins } break; case 1: { - if (icnt <= 0) { + if (icnt == 0) { goto out; } if (*ps == ' ' || *ps == '\t') { @@ -1074,7 +1074,7 @@ static php_conv_err_t php_conv_qprint_decode_convert(php_conv_qprint_decode *ins } /* break is missing intentionally */ case 2: { - if (icnt <= 0) { + if (icnt == 0) { goto out; } @@ -1101,7 +1101,7 @@ static php_conv_err_t php_conv_qprint_decode_convert(php_conv_qprint_decode *ins } break; case 4: { - if (icnt <= 0) { + if (icnt == 0) { goto out; } if (lb_cnt < inst->lbchars_len &&

« previous php.cvs (#100290) next »