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

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

 



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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]