mirror of
https://github.com/nginx/nginx.git
synced 2024-12-03 13:09:01 +08:00
SPDY: fixed "too long header line" logging.
This fixes possible one byte buffer overrun and makes sure ellipsis are always added, see 21043ce2a005.
This commit is contained in:
parent
e2bc3c11b2
commit
fb96936c1a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user