Re: [PATCH 1/3] qemu: only parse basename when determining emulator properties

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

 



On 09/04/2013 06:14 AM, Michal Privoznik wrote:
> On 28.08.2013 06:00, Eric Blake wrote:
>> 'virsh domxml-from-native' and 'virsh qemu-attach' could misbehave
>> for an emulator installed in (a somewhat unlikely) location
>> such as /usr/local/qemu-1.6/qemu-system-x86_64 or (an even less
>> likely) /opt/notxen/qemu-system-x86_64.  Limit the strstr seach
>> to just the basename of the file where we are assuming details
>> about the binary based on its name.
>>
>> While testing, I accidentally triggered a core dump during strcmp
>> when I forgot to set os.type on one of my code paths; this patch
>> changes such a coding error to raise a nicer internal error instead.
>>
>> * src/qemu/qemu_command.c (qemuParseCommandLine): Compute basename
>> earlier.
>> * src/conf/domain_conf.c (virDomainDefPostParseInternal): Avoid
>> NULL deref.
>>
>> Signed-off-by: Eric Blake <eblake@xxxxxxxxxx>
>> ---
>>  src/conf/domain_conf.c  |  6 ++++++
>>  src/qemu/qemu_command.c | 22 ++++++++++------------
>>  2 files changed, 16 insertions(+), 12 deletions(-)
> 
> ACK

Thanks; pushed.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
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]