Re: [PATCH] qemu: monitor: Fix type of holdtime argument in qemuMonitorJSONSendKey

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

 



On 06/03/14 14:23, Martin Kletzander wrote:
> On Tue, Jun 03, 2014 at 11:37:45AM +0200, Peter Krempa wrote:
>> qemuMonitorJSONSendKey declares the "holdtime" argument as unsigned int
>> while the command was constructed in qemuMonitorJSONMakeCommand using
>> the "P" modifier which took a unsigned long from the variable
>> arguments which then made it possible to access uninitialized memory.
>>
>> This broke the qemumonitorjsontest on 32bit fedora 20:
>> 64) qemuMonitorJSONSendKey
>> ... libvirt: QEMU Driver error : internal error: unsupported data type
>> 'W' for arg 'WVSƒì ‹D$0è‘wÿÿ?ÃAå' FAILED
>>
>> Uncovered by upstream commit f744b831c66d9e82453f7a96cab5eddf7570c253.
>>
>> Additionally add test for the hold-time option.
>> ---
>> src/qemu/qemu_monitor_json.c |  2 +-
>> tests/qemumonitorjsontest.c  | 33 +++++++++++++++++++++++++++++++++
>> 2 files changed, 34 insertions(+), 1 deletion(-)
>>
> 
> Makes sense, ACK.
> 
> Martin

Pushed; Thanks.

Peter

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]