[libvirt] [PATCH v2] qemuTestDriverInit: fill driver with zeroes

Martin Kletzander mkletzan at redhat.com
Mon Jan 18 15:38:24 UTC 2016


On Mon, Jan 18, 2016 at 11:40:49AM +0100, Michal Privoznik wrote:
>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 at redhat.com>
>---
>
>diff to v1:
>-Jirka's review worked in
>

That had to be hard ;)  ACK.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160118/ce227142/attachment-0001.sig>


More information about the libvir-list mailing list