mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
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.
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user