changeset 5206:abfe9e6e72cb stable-1.2

Fixed chunk size parsing.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 13 May 2013 13:19:28 +0400
parents 6082e0ab3d89
children 0e80c5bf5e1b
files src/http/modules/ngx_http_proxy_module.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_proxy_module.c
+++ b/src/http/modules/ngx_http_proxy_module.c
@@ -1865,6 +1865,10 @@ data:
 
     }
 
+    if (ctx->size < 0 || ctx->length < 0) {
+        goto invalid;
+    }
+
     return rc;
 
 done: