# HG changeset patch # User Maxim Dounin # Date 1364579981 0 # Node ID ab992c25770ca178252836832b099204c30a37a4 # Parent 94c349e3589d37765b7abf3801e43e7727d37ef9 Merge of r5129: split clients configuration parsing. Split clients: check length when parsing configuration. diff --git a/src/http/modules/ngx_http_split_clients_module.c b/src/http/modules/ngx_http_split_clients_module.c --- a/src/http/modules/ngx_http_split_clients_module.c +++ b/src/http/modules/ngx_http_split_clients_module.c @@ -218,7 +218,7 @@ ngx_http_split_clients(ngx_conf_t *cf, n 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; }