Re: [PATCH] qemu: Avoid dereference of NULL pointer

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

 



On Wed, Nov 23, 2011 at 15:58:10 +0100, Peter Krempa wrote:
> If something fails while initializing qemu job object in
> qemuDomainObjPrivateAlloc(), memory to the private pointer is freed, but
> after that, the pointer is still dereferenced, which may result in a
> segfault.
> 
> * qemuDomainObjPrivateAlloc() - Don't dereference NULL pointer.
> ---
> I added the label and jump with future expansions in mind, as I've
> found this bug while modifying said function.
> 
>  src/qemu/qemu_domain.c |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)

ACK

Jirka

--
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]