com php-src: fix condition: ext/standard/filters.c

From: Date: Sat, 13 Sep 2014 21:21:38 +0000
Subject: com php-src: fix condition: ext/standard/filters.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-81560@lists.php.net to get a copy of this message
Commit: d578e351a938acc26382e759c21fe09862f8ba2a Author: Anatol Belski <ab@php.net> Sat, 13 Sep 2014 17:35:59 +0200 Parents: 5092c5490ade239f68222fef167b254c44262287 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d578e351a938acc26382e759c21fe09862f8ba2a Log: fix condition substraction of two unsigned Changed paths: M ext/standard/filters.c Diff: diff --git a/ext/standard/filters.c b/ext/standard/filters.c index b59c1f3..7f48121 100644 --- a/ext/standard/filters.c +++ b/ext/standard/filters.c @@ -1699,7 +1699,7 @@ static int strfilter_convert_append_bucket( } } - if (out_buf_size - ocnt > 0) { + if (out_buf_size > ocnt) { if (NULL == (new_bucket = php_stream_bucket_new(stream, out_buf, (out_buf_size - ocnt), 1, persistent TSRMLS_CC))) { goto out_failure; }

« previous php.cvs (#81560) next »