qemu-e2k/qobject
Michael Roth 3d5b3ec6d4 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>
2013-05-23 09:44:20 -04:00
..
json-lexer.c build: move qobject files to qobject/ and libqemuutil.a 2013-01-12 18:42:50 +01:00
json-parser.c json-parser: fix handling of large whole number values 2013-05-23 09:44:20 -04:00
json-streamer.c build: move qobject files to qobject/ and libqemuutil.a 2013-01-12 18:42:50 +01:00
Makefile.objs build: move qobject files to qobject/ and libqemuutil.a 2013-01-12 18:42:50 +01:00
qbool.c build: move qobject files to qobject/ and libqemuutil.a 2013-01-12 18:42:50 +01:00
qdict.c Add qdict_clone_shallow() 2013-03-15 16:07:49 +01:00
qerror.c build: move qobject files to qobject/ and libqemuutil.a 2013-01-12 18:42:50 +01:00
qfloat.c build: move qobject files to qobject/ and libqemuutil.a 2013-01-12 18:42:50 +01:00
qint.c build: move qobject files to qobject/ and libqemuutil.a 2013-01-12 18:42:50 +01:00
qjson.c qjson: to_json() case QTYPE_QSTRING is buggy, rewrite 2013-04-13 19:40:25 +00:00
qlist.c build: move qobject files to qobject/ and libqemuutil.a 2013-01-12 18:42:50 +01:00
qstring.c qstring: add qstring_get_length() 2013-04-05 08:42:29 -04:00