]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virExec: avoid uninitialized memory usage
authorEric Blake <eblake@redhat.com>
Mon, 21 Feb 2011 21:27:04 +0000 (14:27 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 24 Feb 2011 20:12:52 +0000 (13:12 -0700)
commitfd21ecfd49733caed759ed88ea171c217752cd4c
tree13d4b662edfb80e1ec11d30d93425621bcc2d690
parent4f2094a8a61682c81b3b5412ac1f3d9564a8b544
virExec: avoid uninitialized memory usage

valgrind warns:

==21079== Syscall param rt_sigaction(act->sa_mask) points to uninitialised byte(s)
==21079==    at 0x329840F63E: __libc_sigaction (sigaction.c:67)
==21079==    by 0x4E5A8E7: __virExec (util.c:661)

Regression introduced in commit ab07533e.  Technically, sa_mask
shouldn't affect operation if sa_flags selects sa_handler, and
sa_handler selects SIG_IGN, but better safe than sorry.

* src/util/util.c (__virExec): Supply missing sigemptyset.
src/util/util.c