# HG changeset patch # User Maxim Dounin # Date 1367834604 -14400 # Node ID cef7b42d50b3c72a4d6221e3b0acd4d29f9aa0a0 # Parent 886800caf36081e1fcbecd0483abeefbafc781b3 Fixed chunk size parsing. diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c --- 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: