# HG changeset patch # User Maxim Dounin # Date 1367834604 -14400 # Node ID cef7b42d50b3c72a4d6221e3b0acd4d29f9aa0a0 # Parent 886800caf36081e1fcbecd0483abeefbafc781b3 Fixed chunk size parsing. diff -r 886800caf360 -r cef7b42d50b3 src/http/ngx_http_parse.c --- a/src/http/ngx_http_parse.c Mon Apr 29 18:58:58 2013 +0400 +++ b/src/http/ngx_http_parse.c Mon May 06 14:03:24 2013 +0400 @@ -2209,6 +2209,10 @@ } + if (ctx->size < 0 || ctx->length < 0) { + goto invalid; + } + return rc; done: