]> 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)
commit7dd799357d7fd853b488b52ae17f9d0ee3142941
tree565c6519980a400dc6ba7dd66479b0ed4ad75b93
parenta4ce770a89f12924a61a5cd2ee6a862648fe0203
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