Re: [PATCH] util: Fix bug which will cause libvirtd crash

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

 



On 12/06/2010 02:41 AM, Osier Yang wrote:
> "virCommandRun": if "cmd->outbuf" or "cmd->errbuf" is NULL,
> libvirtd will be crashed when trying to start a qemu domain
> (which invokes "virCommandRun"), it caused by we try to use
> "*cmd->outbuf" and "*cmd->errbuf" regardless of cmd->outbuf
> or cmd->errbuf is NULL.
> 
> * src/util/command.c (virCommandRun)
> ---
>  src/util/command.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

ACK; this fixes the issue Matthias raised in
https://www.redhat.com/archives/libvir-list/2010-December/msg00257.html.

Pushed.

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