]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Add comment on why the cast is safe and does not result
authorJim Jagielski <jim@apache.org>
Mon, 18 Aug 2008 15:30:23 +0000 (15:30 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 18 Aug 2008 15:30:23 +0000 (15:30 +0000)
in lost info.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@686786 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_fcgi.c

index a6422efb718117b103830d6732d16f5c1ce0adbb..6056aeb04836f5eb28d27746ed96df6f5ea96bc0 100644 (file)
@@ -329,6 +329,7 @@ static apr_status_t send_environment(proxy_conn_rec *conn, request_rec *r,
 
         envlen += vallen;
 
+       /* The cast of bodylen is safe since FCGI_MAX_ENV_SIZE is for sure an int */
         if (envlen > FCGI_MAX_ENV_SIZE) {
             ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
                           "proxy: FCGI: truncating environment to %d bytes and %d elements",