mirror of
https://github.com/nginx/nginx.git
synced 2024-12-04 05:38:59 +08:00
Core: fixed buffer overrun when hash max_size reached.
This commit is contained in:
parent
4a2fba2d46
commit
52e4dc2f74
@ -312,6 +312,8 @@ ngx_hash_init(ngx_hash_init_t *hinit, ngx_hash_key_t *names, ngx_uint_t nelts)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size--;
|
||||||
|
|
||||||
ngx_log_error(NGX_LOG_WARN, hinit->pool->log, 0,
|
ngx_log_error(NGX_LOG_WARN, hinit->pool->log, 0,
|
||||||
"could not build optimal %s, you should increase "
|
"could not build optimal %s, you should increase "
|
||||||
"either %s_max_size: %i or %s_bucket_size: %i; "
|
"either %s_max_size: %i or %s_bucket_size: %i; "
|
||||||
|
Loading…
Reference in New Issue
Block a user