aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_file.c')
-rw-r--r--src/core/ngx_file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ngx_file.c b/src/core/ngx_file.c
index a8b07ecea..3ebd73d8b 100644
--- a/src/core/ngx_file.c
+++ b/src/core/ngx_file.c
@@ -372,6 +372,10 @@ ngx_conf_set_path_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
path->len += level + 1;
}
+ if (path->len > 10 + i) {
+ return "invalid value";
+ }
+
*slot = path;
if (ngx_add_path(cf, slot) == NGX_ERROR) {