From: Joe Orton Date: Tue, 25 Feb 2020 16:34:47 +0000 (+0000) Subject: * modules/generators/cgi_common.h (cgi_handle_request): Catch X-Git-Tag: 2.5.0-alpha2-ci-test-only~1620 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f76ae80c00a98c381ce4adac9524a3cb7e62989;p=thirdparty%2Fapache%2Fhttpd.git * modules/generators/cgi_common.h (cgi_handle_request): Catch (unlikely) apr_bucket_read() failure when reading request. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874511 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/cgi_common.h b/modules/generators/cgi_common.h index 1c80b0e85e2..f97e7a2390b 100644 --- a/modules/generators/cgi_common.h +++ b/modules/generators/cgi_common.h @@ -407,7 +407,10 @@ static apr_status_t cgi_handle_request(request_rec *r, apr_file_t *script_out, } /* read */ - apr_bucket_read(bucket, &data, &len, APR_BLOCK_READ); + rv = apr_bucket_read(bucket, &data, &len, APR_BLOCK_READ); + if (rv) { + return rv; + } if (logbufbytes && dbpos < logbufbytes) { int cursize;