Mercurial > hg > nginx
comparison src/mail/ngx_mail_imap_handler.c @ 4404:840f3e768ef8
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 {}
}
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 16 Jan 2012 12:42:07 +0000 |
parents | dd1570b6f237 |
children | d620f497c50f |
comparison
equal
deleted
inserted
replaced
4403:c8b9f62cb414 | 4404:840f3e768ef8 |
---|