# HG changeset patch # User Igor Sysoev # Date 1251808357 0 # Node ID dcf50b4c7ec6ffea4d308a01ce352b9ab3fb9735 # Parent 58f3d0ba9b5f499ffdecb041d350f2fb069206bd fix segfault when a header starts with "\rX" and logging is set to info or debug level diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -743,6 +743,7 @@ ngx_http_parse_header_line(ngx_http_requ switch (ch) { case CR: + r->header_name_start = p; r->header_end = p; state = sw_header_almost_done; break;