qemu-e2k/qapi
Markus Armbruster 5891c388bb qobject-input-visitor: Reject non-finite numbers with keyval
The QObject input visitor can produce only finite numbers when its
input comes out of the JSON parser, because the the JSON parser
implements RFC 7159, which provides no syntax for infinity and NaN.

However, it can produce infinity and NaN when its input comes out of
keyval_parse(), because we parse with strtod() then.

The keyval variant should not be able to express things the JSON
variant can't.  Rejecting non-finite numbers there is the conservative
fix.  It's also minimally invasive.

We could instead extend our JSON dialect to provide for infinity and
NaN.  Not today.

Note that the JSON formatter can emit non-finite numbers (marked FIXME
in commit 6e8e5cb).

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1495471335-23707-2-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2017-05-31 16:04:05 +02:00
..
block-core.json block: curl: Allow passing cookies via QCryptoSecret 2017-05-16 10:31:08 -04:00
block.json
common.json
crypto.json
event.json shutdown: Expose bool cause in SHUTDOWN and RESET events 2017-05-23 13:28:17 +02:00
introspect.json
Makefile.objs
opts-visitor.c
qapi-clone-visitor.c
qapi-dealloc-visitor.c
qapi-util.c
qapi-visit-core.c
qmp-dispatch.c qmp: Improve QMP dispatch error messages 2017-05-09 09:14:40 +02:00
qmp-event.c
qmp-registry.c
qobject-input-visitor.c qobject-input-visitor: Reject non-finite numbers with keyval 2017-05-31 16:04:05 +02:00
qobject-output-visitor.c
rocker.json
string-input-visitor.c
string-output-visitor.c utils: provide size_to_str() 2017-05-17 17:30:45 +01:00
trace-events
trace.json