Anonymous User
March 22, 2012 06:44AM
Author: mdounin
Date: 2012-03-22 10:43:33 +0000 (Thu, 22 Mar 2012)
New Revision: 4554
URL: http://trac.nginx.org/nginx/changeset/4554/nginx

Log:
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.


Modified:
trunk/src/http/modules/ngx_http_xslt_filter_module.c

Modified: trunk/src/http/modules/ngx_http_xslt_filter_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_xslt_filter_module.c 2012-03-22 10:42:27 UTC (rev 4553)
+++ trunk/src/http/modules/ngx_http_xslt_filter_module.c 2012-03-22 10:43:33 UTC (rev 4554)
@@ -585,7 +585,7 @@
"xslt filter param: \"%s\"", string.data);

p = string.data;
- last = string.data + string.len - 1;
+ last = string.data + string.len;

while (p && *p) {


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r4554 - trunk/src/http/modules

Anonymous User 984 March 22, 2012 06:44AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 172
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready