# HG changeset patch # User Yichun Zhang # Date 1412276417 25200 # Node ID 5e72578e650379f3cb5fe816360ff941312e2beb # Parent fd283aa92e0444feca00f798f536471f1bf32fe4 Core: fixed buffer overrun when hash max_size reached. diff --git a/src/core/ngx_hash.c b/src/core/ngx_hash.c --- a/src/core/ngx_hash.c +++ b/src/core/ngx_hash.c @@ -312,6 +312,8 @@ ngx_hash_init(ngx_hash_init_t *hinit, ng 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; "