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

mdounin at mdounin.ru mdounin at mdounin.ru
Thu Mar 22 10:43:34 UTC 2012


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) {
 



More information about the nginx-devel mailing list