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
json-parser.c json-parser: fix handling of large whole number values 2013-05-23 09:44:20 -04:00
json-streamer.c
Makefile.objs
qbool.c
qdict.c
qerror.c
qfloat.c
qint.c
qjson.c qjson: to_json() case QTYPE_QSTRING is buggy, rewrite 2013-04-13 19:40:25 +00:00
qlist.c
qstring.c qstring: add qstring_get_length() 2013-04-05 08:42:29 -04:00