[libvirt] [PATCH 0/2] Fix numeric overflow in qemu block job handling

Peter Krempa pkrempa at redhat.com
Wed Apr 3 08:45:59 UTC 2013


The JSON generator and qemu QMP protocol limit numeric values to LLONG_MAX even
for unsigned values. A bug in the code caused numeric overflow when passing
through speed parameters to qemu block job commands.

Background: https://bugzilla.redhat.com/show_bug.cgi?id=927156

Peter Krempa (2):
  qemu-JSON: Error out if number is out of range instead of overflowing
    to negative
  qemu-blockjob: Fix limit of bandwidth for block jobs to supported
    value

 src/qemu/qemu_monitor.c      | 21 ++++++++++++---------
 src/qemu/qemu_monitor_json.c | 10 ++++++++--
 2 files changed, 20 insertions(+), 11 deletions(-)

-- 
1.8.1.5




More information about the libvir-list mailing list