]> git.kaiwu.me - nginx.git/commit
Core: fixed potential buffer overrun when initializing hash.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 24 Feb 2015 15:37:14 +0000 (18:37 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 24 Feb 2015 15:37:14 +0000 (18:37 +0300)
commit0071fbb9e6685b76a4865f460cb674020dfdf8ec
treea9cf9badb9471cb8ad50a35679da49e02fc0c624
parent06d72320ff5d5cd717b576920bc27c3e26329774
Core: fixed potential buffer overrun when initializing hash.

Initial size as calculated from the number of elements may be bigger
than max_size.  If this happens, make sure to set size to max_size.

Reported by Chris West.
src/core/ngx_hash.c