diff src/http/ngx_http_parse.c @ 5189:cef7b42d50b3

Fixed chunk size parsing.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 06 May 2013 14:03:24 +0400
parents c0f7b94e88ba
children 55dc535ae5dc 988c22615014
line wrap: on
line diff
--- 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: