]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuTestDriverInit: fill driver with zeroes
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 18 Jan 2016 08:11:19 +0000 (09:11 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 18 Jan 2016 12:22:14 +0000 (13:22 +0100)
commit7f866e54df59489b45e6635195ac8fff14e6fe8b
treed88016bf0ef8fff62cbd2739d21c114a4cd98985
parent9d7e20d1190bb74fe65bd6492150a35d2620e444
qemuTestDriverInit: fill driver with zeroes

In the commit aea47e48c473a we have fixed a single pointer within
driver structure. Since all callers pass statically allocated
driver on stack other pointers within driver may contain random
values too. Before touching it lets overwrite it with zeroes and
thus fix all dangling pointers.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/testutilsqemu.c