diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2014-11-07 17:38:55 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2014-11-07 17:38:55 +0300 |
commit | fb96936c1a376c8fc1641b5028ebcb909a451919 (patch) | |
tree | 9b1f02e97cf006dd8d263b1883e68f57a8053bf1 /src | |
parent | e2bc3c11b284b6876d41ba31abf1f3d304818b3d (diff) | |
download | nginx-fb96936c1a376c8fc1641b5028ebcb909a451919.tar.gz nginx-fb96936c1a376c8fc1641b5028ebcb909a451919.zip |
SPDY: fixed "too long header line" logging.
This fixes possible one byte buffer overrun and makes sure ellipsis are
always added, see 21043ce2a005.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_spdy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/http/ngx_http_spdy.c b/src/http/ngx_http_spdy.c index 3c57882a6..010b803b3 100644 --- a/src/http/ngx_http_spdy.c +++ b/src/http/ngx_http_spdy.c @@ -2656,11 +2656,10 @@ ngx_http_spdy_alloc_large_header_buffer(ngx_http_request_t *r) if (rest > NGX_MAX_ERROR_STR - 300) { rest = NGX_MAX_ERROR_STR - 300; - p[rest++] = '.'; p[rest++] = '.'; p[rest++] = '.'; } ngx_log_error(NGX_LOG_INFO, r->connection->log, 0, - "client sent too long header name or value: \"%*s\"", + "client sent too long header name or value: \"%*s...\"", rest, p); return NGX_DECLINED; |