Klaus Demo nginx / 51aa6de
fix segfault if there is single large_client_header_buffers and a request line fills it completely Igor Sysoev 12 years ago
1 changed file(s) with 9 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
953953 }
954954
955955 if (rv == NGX_DECLINED) {
956 len = r->header_in->end - r->header_name_start;
957956 p = r->header_name_start;
957
958 if (p == NULL) {
959 ngx_log_error(NGX_LOG_INFO, c->log, 0,
960 "client sent too large request");
961 ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST);
962 return;
963 }
964
965 len = r->header_in->end - p;
958966
959967 if (len > NGX_MAX_ERROR_STR - 300) {
960968 len = NGX_MAX_ERROR_STR - 300;