mirror of
https://github.com/nginx/nginx.git
synced 2024-11-29 12:14:27 -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:
parent
ae11f08cad
commit
3333c6c7c8
@ -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) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user