[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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 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 redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]