commit | 52e4dc2f74fd032dace01acbe5eb29ddf7c1ad96 | [log] [tgz] |
---|---|---|
author | Yichun Zhang <agentzh@gmail.com> | Thu Oct 02 12:00:17 2014 -0700 |
committer | Yichun Zhang <agentzh@gmail.com> | Thu Oct 02 12:00:17 2014 -0700 |
tree | 90959823e1ccd6972db3ed8ffbda37e98dacc859 | |
parent | 4a2fba2d46d8d315a3dd3792d9f9c2d13e17a794 [diff] [blame] |
Core: fixed buffer overrun when hash max_size reached.
diff --git a/src/core/ngx_hash.c b/src/core/ngx_hash.c index c7bfed7..65ad839 100644 --- a/src/core/ngx_hash.c +++ b/src/core/ngx_hash.c
@@ -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; "