diff options
author | Michael Roth <mdroth@linux.vnet.ibm.com> | 2013-05-10 17:46:05 -0500 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2013-05-23 09:44:20 -0400 |
commit | 3d5b3ec6d460a92245215aaf7b349b0b9e5ffa25 (patch) | |
tree | 486e04aadbe46c7d142a2a33dde2b1644e62c607 /docs/tracing.txt | |
parent | 0b400e792718f59275d5d54c21de9a589b35a81f (diff) | |
download | qemu-3d5b3ec6d460a92245215aaf7b349b0b9e5ffa25.zip qemu-3d5b3ec6d460a92245215aaf7b349b0b9e5ffa25.tar.gz qemu-3d5b3ec6d460a92245215aaf7b349b0b9e5ffa25.tar.bz2 |
json-parser: fix handling of large whole number values
Currently our JSON parser assumes that numbers lacking a fractional
value are integers and attempts to store them as QInt/int64 values. This
breaks in the case where the number overflows/underflows int64 values (which
is still valid JSON)
Fix this by detecting such cases and using a QFloat to store the value
instead.
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Amos Kong <akong@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'docs/tracing.txt')
0 files changed, 0 insertions, 0 deletions