Mercurial > hg > nginx-quic
view src/core/nginx.h @ 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 | b1f9916c7c4e |
children | 3176ca2a2588 |
line wrap: on
line source
/* * Copyright (C) Igor Sysoev */ #ifndef _NGINX_H_INCLUDED_ #define _NGINX_H_INCLUDED_ #define nginx_version 1001013 #define NGINX_VERSION "1.1.13" #define NGINX_VER "nginx/" NGINX_VERSION #define NGINX_VAR "NGINX" #define NGX_OLDPID_EXT ".oldbin" #endif /* _NGINX_H_INCLUDED_ */