# HG changeset patch # User Yichun Zhang # Date 1412276417 25200 # Node ID dfb23e4361da0c1baafacea4a096ade688ce5a31 # Parent 8bc8eb8abfae26258c6bf0e6d8805167447da712 Core: fixed buffer overrun when hash max_size reached. diff -r 8bc8eb8abfae -r dfb23e4361da src/core/ngx_hash.c --- a/src/core/ngx_hash.c Mon Apr 06 18:54:19 2015 +0300 +++ b/src/core/ngx_hash.c Thu Oct 02 12:00:17 2014 -0700 @@ -312,6 +312,8 @@ 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; "