changeset 5194:f1e993f6c11d stable-1.4

Fixed chunk size parsing.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 06 May 2013 14:03:24 +0400
parents 8088f11db86e
children 0702de638a4c
files src/http/ngx_http_parse.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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: