diff options
author | Yann Ylavic <ylavic@apache.org> | 2022-06-23 11:32:45 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2022-06-23 11:32:45 +0000 |
commit | 9cc1fc7b565419e929929cbf906448a78ac3b03d (patch) | |
tree | c227b4c385038ebd0e4aae06c7138de9c30106ff /buckets | |
parent | ba7f51b1ef2d2003bc16287acf72096a10b0f64a (diff) | |
download | apr-9cc1fc7b565419e929929cbf906448a78ac3b03d.tar.gz |
apr_brigade: Fix conversion from 'apr_off_t' to 'size_t', possible loss of data.
* buckets/apr_brigade.c(apr_brigade_split_boundary):
"ignore" and "inbytes" vars are size_t and used as such.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902194 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buckets')
-rw-r--r-- | buckets/apr_brigade.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buckets/apr_brigade.c b/buckets/apr_brigade.c index aed10035d..20c7d192c 100644 --- a/buckets/apr_brigade.c +++ b/buckets/apr_brigade.c @@ -423,7 +423,7 @@ APR_DECLARE(apr_status_t) apr_brigade_split_boundary(apr_bucket_brigade *bbOut, apr_off_t maxbytes) { apr_off_t outbytes = 0; - apr_off_t ignore = 0; + apr_size_t ignore = 0; if (!boundary || !boundary[0]) { return APR_EINVAL; @@ -446,7 +446,7 @@ APR_DECLARE(apr_status_t) apr_brigade_split_boundary(apr_bucket_brigade *bbOut, const char *pos; const char *str; apr_bucket *e, *next, *prev; - apr_off_t inbytes = 0; + apr_size_t inbytes = 0; apr_size_t len; apr_status_t rv; |