mirror of https://github.com/openresty/openresty
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
232 B
Diff
14 lines
232 B
Diff
12 years ago
|
--- src/http/modules/ngx_http_proxy_module.c
|
||
|
+++ 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:
|