summaryrefslogtreecommitdiff
path: root/src/fdholder/s6-fdholderd.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-09-14 21:42:32 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-09-14 21:42:32 +0000
commitb4f2b435bb7921c9a447b156bce4d2e671993fdd (patch)
tree3aeb348c359bf973ec0620123c240c880fbb20c1 /src/fdholder/s6-fdholderd.c
parent98a11fa2257a51819174c229a79da513c0eac704 (diff)
downloads6-b4f2b435bb7921c9a447b156bce4d2e671993fdd.tar.xz
bugfix: UB in s6-fdholderd's do_list
Diffstat (limited to 'src/fdholder/s6-fdholderd.c')
-rw-r--r--src/fdholder/s6-fdholderd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fdholder/s6-fdholderd.c b/src/fdholder/s6-fdholderd.c
index 56dfb63..b0a9d0c 100644
--- a/src/fdholder/s6-fdholderd.c
+++ b/src/fdholder/s6-fdholderd.c
@@ -318,7 +318,7 @@ static int fill_siovec_with_ids_iter (char *thing, void *data)
static int do_list (uint32_t cc, unixmessage_t const *m)
{
client_t *c = CLIENT(cc) ;
- struct iovec v[numfds] ;
+ struct iovec v[1+numfds] ;
unixmessage_v_t ans = { .v = v, .vlen = 1+numfds, .fds = 0, .nfds = 0 } ;
struct iovec *vp = v + 1 ;
char pack[5] = "" ;