From 3333c6c7c868d01cd940a5044cd31eadaea434d5 Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Thu, 22 Mar 2012 10:43:33 +0000 Subject: Fixed off-by-one in xslt parameter parsing. The problem was introduced in 0.7.44 (r2589) during conversion to complex values. Previously string.len included space for terminating NUL, but with complex values it doesn't. --- src/http/modules/ngx_http_xslt_filter_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/http/modules/ngx_http_xslt_filter_module.c b/src/http/modules/ngx_http_xslt_filter_module.c index f86c30381..0fb59f288 100644 --- a/src/http/modules/ngx_http_xslt_filter_module.c +++ b/src/http/modules/ngx_http_xslt_filter_module.c @@ -585,7 +585,7 @@ ngx_http_xslt_params(ngx_http_request_t *r, ngx_http_xslt_filter_ctx_t *ctx, "xslt filter param: \"%s\"", string.data); p = string.data; - last = string.data + string.len - 1; + last = string.data + string.len; while (p && *p) { -- cgit