[libvirt] [PATCH] domain_event.c: don't deref NULL on an OOM error path

Eric Blake eblake at redhat.com
Mon Mar 29 15:56:47 UTC 2010


On 03/29/2010 09:44 AM, Jim Meyering wrote:
> This fixes a pair of potential segfault-inducing bugs:
> 
>>From 7ca7e9cd366b17e41da9207b68de7e9166a88da2 Mon Sep 17 00:00:00 2001
> From: Jim Meyering <meyering at redhat.com>
> Date: Mon, 29 Mar 2010 17:43:01 +0200
> Subject: [PATCH] domain_event.c: don't deref NULL on an OOM error path
> 
> * src/conf/domain_event.c (virDomainEventGraphicsNewFromDom):
> Return NULL when handling out-of-memory error, rather than
> falling through with ev=NULL and then assigning to ev->member.
> (virDomainEventGraphicsNewFromObj): Likewise.

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 323 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100329/ee5a6408/attachment-0001.sig>


More information about the libvir-list mailing list