From: Maxim Dounin Date: Mon, 6 May 2013 10:03:24 +0000 (+0400) Subject: Fixed chunk size parsing. X-Git-Tag: release-1.4.1~1 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=4997de8005630664ab35f27140e2077e818b21a7;p=nginx.git Fixed chunk size parsing. --- diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index 34b3b85d0..3c168aaf2 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -2209,6 +2209,10 @@ data: } + if (ctx->size < 0 || ctx->length < 0) { + goto invalid; + } + return rc; done: