diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2010-06-30 10:13:51 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2010-06-30 10:13:51 +0000 |
| commit | ffcc2f4a9e85cb41894889bddda6c553b75a37f2 (patch) | |
| tree | 3886db3b63719af6d06ef503011246fa7f12a936 | |
| parent | 3b0ddc2097b9680c95639587922929c1c0142c24 (diff) | |
| download | nginx-ffcc2f4a9e85cb41894889bddda6c553b75a37f2.tar.gz nginx-ffcc2f4a9e85cb41894889bddda6c553b75a37f2.tar.bz2 | |
test binary geo range base size
| -rw-r--r-- | src/http/modules/ngx_http_geo_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c index 0b511359c..1f3f75561 100644 --- a/src/http/modules/ngx_http_geo_module.c +++ b/src/http/modules/ngx_http_geo_module.c @@ -1232,7 +1232,7 @@ ngx_http_geo_include_binary_base(ngx_conf_t *cf, ngx_http_geo_conf_ctx_t *ctx, header = (ngx_http_geo_header_t *) base; - if (ngx_memcmp(&ngx_http_geo_header, header, 12) != 0) { + if (size < 16 || ngx_memcmp(&ngx_http_geo_header, header, 12) != 0) { ngx_conf_log_error(NGX_LOG_WARN, cf, 0, "incompatible binary geo range base \"%s\"", name->data); goto failed; |
