[nginx] svn commit: r5129 - trunk/src/http/modules
ru at nginx.com
ru at nginx.com
Thu Mar 21 16:06:53 UTC 2013
Author: ru
Date: 2013-03-21 16:06:53 +0000 (Thu, 21 Mar 2013)
New Revision: 5129
URL: http://trac.nginx.org/nginx/changeset/5129/nginx
Log:
Split clients: check length when parsing configuration.
Modified:
trunk/src/http/modules/ngx_http_split_clients_module.c
Modified: trunk/src/http/modules/ngx_http_split_clients_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_split_clients_module.c 2013-03-21 16:06:13 UTC (rev 5128)
+++ trunk/src/http/modules/ngx_http_split_clients_module.c 2013-03-21 16:06:53 UTC (rev 5129)
@@ -218,7 +218,7 @@
part->percent = 0;
} else {
- if (value[0].data[value[0].len - 1] != '%') {
+ if (value[0].len == 0 || value[0].data[value[0].len - 1] != '%') {
goto invalid;
}
More information about the nginx-devel
mailing list