Home
last modified time | relevance | path

Searched hist:"4 b1c0cd7c7f9f9cf2e46c0a9c9cd88b2cba3decd" (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/qobject/
H A Djson-lexer.cdiff 4b1c0cd7c7f9f9cf2e46c0a9c9cd88b2cba3decd Thu Aug 23 11:39:52 CDT 2018 Markus Armbruster <armbru@redhat.com> json: Accept overlong \xC0\x80 as U+0000 ("modified UTF-8")

Since the JSON grammer doesn't accept U+0000 anywhere, this merely
exchanges one kind of parse error for another. It's purely for
consistency with qobject_to_json(), which accepts \xC0\x80 (see commit
e2ec3f97680).

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180823164025.12553-26-armbru@redhat.com>
H A Djson-parser.cdiff 4b1c0cd7c7f9f9cf2e46c0a9c9cd88b2cba3decd Thu Aug 23 11:39:52 CDT 2018 Markus Armbruster <armbru@redhat.com> json: Accept overlong \xC0\x80 as U+0000 ("modified UTF-8")

Since the JSON grammer doesn't accept U+0000 anywhere, this merely
exchanges one kind of parse error for another. It's purely for
consistency with qobject_to_json(), which accepts \xC0\x80 (see commit
e2ec3f97680).

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180823164025.12553-26-armbru@redhat.com>