mirror of
https://github.com/nginx/nginx.git
synced 2026-06-26 11:52:00 +00:00
fix segfault when a header starts with "\rX"
and logging is set to info or debug level
This commit is contained in:
parent
f13a2507ae
commit
2e9ea35fd7
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue