mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
fix segfault when a header starts with "\rX"
and logging is set to info or debug level
This commit is contained in:
@@ -743,6 +743,7 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b,
|
||||
|
||||
switch (ch) {
|
||||
case CR:
|
||||
r->header_name_start = p;
|
||||
r->header_end = p;
|
||||
state = sw_header_almost_done;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user