]> git.ipfire.org Git - thirdparty/libvirt.git/commit
commandhelper: Make number of fds variable in printInput
authorTim Wiederhake <twiederh@redhat.com>
Mon, 1 Feb 2021 11:27:58 +0000 (12:27 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Feb 2021 14:00:54 +0000 (15:00 +0100)
commit8cdbedfdbf44435213540a1ef947ed102f09d1b2
tree7cbba3510a3c8e02e8168ca9def8d7ccdb487ee5
parentba326d08b4d7922c0c0196a2a0a9d026bc88ee0e
commandhelper: Make number of fds variable in printInput

Fixes a buffer overflow triggered when more than three "--readfd"
arguments were given on the command line.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
tests/commandhelper.c