From: Jim Jagielski Date: Mon, 18 Aug 2008 15:30:23 +0000 (+0000) Subject: Add comment on why the cast is safe and does not result X-Git-Tag: 2.3.0~348 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ff697d52aaa92de20cfbf575bd66a94ddc13715;p=thirdparty%2Fapache%2Fhttpd.git Add comment on why the cast is safe and does not result in lost info. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@686786 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_fcgi.c b/modules/proxy/mod_proxy_fcgi.c index a6422efb718..6056aeb0483 100644 --- a/modules/proxy/mod_proxy_fcgi.c +++ b/modules/proxy/mod_proxy_fcgi.c @@ -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",