summaryrefslogtreecommitdiff
path: root/qobject/json-parser.c
AgeCommit message (Collapse)AuthorFilesLines
2013-05-23json-parser: fix handling of large whole number valuesMichael Roth1-3/+23
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>
2013-01-12build: move qobject files to qobject/ and libqemuutil.aPaolo Bonzini1-0/+704
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>