Core: fixed buffer overrun when hash max_size reached.

This commit is contained in:
Yichun Zhang 2014-10-02 12:00:17 -07:00
parent 11929fbce1
commit 1b43b3b992
1 changed files with 2 additions and 0 deletions

View File

@ -312,6 +312,8 @@ ngx_hash_init(ngx_hash_init_t *hinit, ngx_hash_key_t *names, ngx_uint_t nelts)
continue;
}
size--;
ngx_log_error(NGX_LOG_WARN, hinit->pool->log, 0,
"could not build optimal %s, you should increase "
"either %s_max_size: %i or %s_bucket_size: %i; "