# HG changeset patch # User Maxim Dounin # Date 1368606224 -14400 # Node ID ecd762770729f4f3d3cbad92a0ff5f280b8b3ddb # Parent ea2ba6dbe3614258a712db86c93c2104b96bcf4d Proxy: clear script engine used to calculate lengths. Previous code is believed to be safe, but might access uninitialized memory (e.g., e->quote). diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -993,6 +993,8 @@ ngx_http_proxy_create_request(ngx_http_r len += uri_len; + ngx_memzero(&le, sizeof(ngx_http_script_engine_t)); + ngx_http_script_flush_no_cacheable_variables(r, plcf->flushes); if (plcf->body_set_len) {