s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

commit b4f2b435bb7921c9a447b156bce4d2e671993fdd
parent 98a11fa2257a51819174c229a79da513c0eac704
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Fri, 14 Sep 2018 21:42:32 +0000

 bugfix: UB in s6-fdholderd's do_list

Diffstat:
Msrc/fdholder/s6-fdholderd.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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] = "" ;