summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf_validation.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2020-07-24 20:25:15 +0300
committerValentin Bartenev <vbart@nginx.com>2020-07-24 20:25:15 +0300
commit2a71a8a9f4fcd3aedc65fc0c7f33aacf79457492 (patch)
tree2a338f0c998bfdc45032b74ba02ebdfc429ec0a0 /src/nxt_conf_validation.c
parent29cf3cc6c100af9eff79ff96e51e859a34fa159e (diff)
downloadunit-2a71a8a9f4fcd3aedc65fc0c7f33aacf79457492.tar.gz
unit-2a71a8a9f4fcd3aedc65fc0c7f33aacf79457492.tar.bz2
Added missing ending indicator in object members validation lists.
This fixes undefined behaviour due to array over-read if an unknown parameter is specified in an uidmap, a gidmap, or a php target object.
Diffstat (limited to 'src/nxt_conf_validation.c')
-rw-r--r--src/nxt_conf_validation.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c
index cdbcf858..553cda19 100644
--- a/src/nxt_conf_validation.c
+++ b/src/nxt_conf_validation.c
@@ -550,6 +550,8 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_app_procmap_members[] = {
NXT_CONF_VLDT_INTEGER,
NULL,
NULL },
+
+ NXT_CONF_VLDT_END
};
#endif
@@ -691,7 +693,9 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_php_target_members[] = {
{ nxt_string("index"),
NXT_CONF_VLDT_STRING,
NULL,
- NULL }
+ NULL },
+
+ NXT_CONF_VLDT_END
};