commit | 4997de8005630664ab35f27140e2077e818b21a7 | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Mon May 06 14:03:24 2013 +0400 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Mon May 06 14:03:24 2013 +0400 |
tree | 02f2ce704b9b3b7d415303a8cb464759f80caf93 | |
parent | 243ecc69cd69b06034d2a9e8024f56c862d349de [diff] |
Fixed chunk size parsing.
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index 34b3b85..3c168aa 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c
@@ -2209,6 +2209,10 @@ } + if (ctx->size < 0 || ctx->length < 0) { + goto invalid; + } + return rc; done: