[Libvirt-cim] [PATCH 4/4] libxkutil: clean entire device structure to avoid memory corruption
John Ferlan
jferlan at redhat.com
Tue Nov 12 22:16:19 UTC 2013
On 10/11/2013 07:47 AM, Viktor Mihajlovski wrote:
> If cleanup_virt_device is called twice (e.g. during modify resource)
> a double free can occur because only the dev substructure has
> been memset to zero. Now zeroing the entire structure.
>
> Signed-off-by: Viktor Mihajlovski <mihajlov at linux.vnet.ibm.com>
> ---
> libxkutil/device_parsing.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
ACK
John
More information about the Libvirt-cim
mailing list