Mercurial > hg > nginx-quic
diff src/http/ngx_http_request_body.c @ 5588:6fc3921025f0
Request body: avoid potential overflow.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 03 Mar 2014 17:39:53 +0400 |
parents | 4aa64f695031 |
children | b8926ba4d087 |
line wrap: on
line diff
--- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -953,13 +953,13 @@ ngx_http_request_body_chunked_filter(ngx if (clcf->client_max_body_size && clcf->client_max_body_size - < r->headers_in.content_length_n + rb->chunked->size) + - r->headers_in.content_length_n < rb->chunked->size) { ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "client intended to send too large chunked " - "body: %O bytes", - r->headers_in.content_length_n - + rb->chunked->size); + "body: %O+%O bytes", + r->headers_in.content_length_n, + rb->chunked->size); r->lingering_close = 1;