mirror of
https://github.com/nginx/nginx.git
synced 2026-06-27 12:21:57 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue