mirror of
https://github.com/nginx/nginx.git
synced 2025-06-29 18:50:39 +08: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
@ -743,6 +743,7 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b,
|
|||||||
|
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case CR:
|
case CR:
|
||||||
|
r->header_name_start = p;
|
||||||
r->header_end = p;
|
r->header_end = p;
|
||||||
state = sw_header_almost_done;
|
state = sw_header_almost_done;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user