]> git.ipfire.org Git - thirdparty/libvirt.git/commit
json: Avoid passing large positive 64 bit integers to QMP.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 25 May 2011 16:52:26 +0000 (17:52 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 25 May 2011 20:30:39 +0000 (21:30 +0100)
commit78eb8b60d59662271c4a9a1be8c9002ee84dc8cf
treecff1122162e6105b8b9cef232804df3e8624eb5a
parent1ff2b6f6ee87552e0348c79a7dcafd71d14ee39d
json: Avoid passing large positive 64 bit integers to QMP.

http://lists.gnu.org/archive/html/qemu-devel/2011-05/threads.html#02162

Currently, qemu silently clips any JSON integer in the range
0x8000000000000000 - 0xffffffffffffffff (all numbers in this range
will be clipped to 0x7fffffffffffffff == LLONG_MAX).

To avoid this, pass these as signed 64 bit integers in the QMP
request.
src/qemu/qemu_monitor_json.c