From: Maxim Dounin Date: Mon, 13 May 2013 09:19:28 +0000 (+0400) Subject: Fixed chunk size parsing. X-Git-Tag: release-1.2.9~1 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=2265b3c2b9fefc7b2065ea160466f3a6c0b025d3;p=nginx.git Fixed chunk size parsing. --- diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c index 977bed73c..0566213db 100644 --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -1865,6 +1865,10 @@ data: } + if (ctx->size < 0 || ctx->length < 0) { + goto invalid; + } + return rc; done: