Mercurial > hg > nginx
comparison src/core/ngx_hash.c @ 5870:5e72578e6503
Core: fixed buffer overrun when hash max_size reached.
author | Yichun Zhang <agentzh@gmail.com> |
---|---|
date | Thu, 02 Oct 2014 12:00:17 -0700 |
parents | 54f847c88cf7 |
children | f961c719fb09 |
comparison
equal
deleted
inserted
replaced
5869:fd283aa92e04 | 5870:5e72578e6503 |
---|---|
310 next: | 310 next: |
311 | 311 |
312 continue; | 312 continue; |
313 } | 313 } |
314 | 314 |
315 size--; | |
316 | |
315 ngx_log_error(NGX_LOG_WARN, hinit->pool->log, 0, | 317 ngx_log_error(NGX_LOG_WARN, hinit->pool->log, 0, |
316 "could not build optimal %s, you should increase " | 318 "could not build optimal %s, you should increase " |
317 "either %s_max_size: %i or %s_bucket_size: %i; " | 319 "either %s_max_size: %i or %s_bucket_size: %i; " |
318 "ignoring %s_bucket_size", | 320 "ignoring %s_bucket_size", |
319 hinit->name, hinit->name, hinit->max_size, | 321 hinit->name, hinit->name, hinit->max_size, |