On 08/17/2018 03:37 AM, Markus Armbruster wrote:

Perhaps worth documenting is the range of JSON numbers produced by
qemu (maybe as a separate patch). Libvirt just hit a bug with the
jansson library making it extremely difficult to parse JSON containing
numbers larger than INT64_MAX, when compared to yajl which had a way
to support up to UINT64_MAX.

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

Knowing that qemu sends numbers larger than INT64_MAX with the intent
that they not be truncated/rounded by conversion to double can be a
vital piece of information for implementing a client, when it comes to
picking a particular library for JSON parsing.

Good point.  Doesn't really fit into this commit, though.  Care to
propose a patch?

Will do, but I'll probably wait for your v2 series to land first.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Reply via email to