From: Igor Sysoev Date: Tue, 1 Sep 2009 12:32:37 +0000 (+0000) Subject: fix segfault when a header starts with "\rX" X-Git-Tag: release-0.8.14~11 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=2e9ea35fd7e37cb93dc3a63b0d1f54d610dbee95;p=nginx.git 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 index fd48fcdff..c1fba529d 100644 --- 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_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;