aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_linux_init.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2012-01-16 12:42:07 +0000
committerValentin Bartenev <vbart@nginx.com>2012-01-16 12:42:07 +0000
commit363a0c53e755750346113d9c5c9cb1a2905d2d2d (patch)
tree9add4528a42de86050b9d88adb675c89efb3afd3 /src/os/unix/ngx_linux_init.c
parentb904676b5e687c8aeabcce297aa6250e07e63462 (diff)
downloadnginx-363a0c53e755750346113d9c5c9cb1a2905d2d2d.tar.gz
nginx-363a0c53e755750346113d9c5c9cb1a2905d2d2d.zip
Fixed division by zero exception in ngx_hash_init().
The ngx_hash_init() function did not expect call with zero elements count, which caused FPE error on configs with an empty "types" block in http context and "types_hash_max_size" > 10000. Example configuration to reproduce: events { } http { types_hash_max_size 10001; types {} server {} }
Diffstat (limited to 'src/os/unix/ngx_linux_init.c')
0 files changed, 0 insertions, 0 deletions