]> Git Repo - qemu.git/commit
json: Accept overlong \xC0\x80 as U+0000 ("modified UTF-8")
authorMarkus Armbruster <[email protected]>
Thu, 23 Aug 2018 16:39:52 +0000 (18:39 +0200)
committerMarkus Armbruster <[email protected]>
Fri, 24 Aug 2018 18:26:37 +0000 (20:26 +0200)
commit4b1c0cd7c7f9f9cf2e46c0a9c9cd88b2cba3decd
tree5841258a3a8fd1fff3aeb2f70f3c68e308c68b8b
parentde930f45cb56ccf7535cbacee3f3686d416f5283
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 <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Message-Id: <20180823164025[email protected]>
qobject/json-lexer.c
qobject/json-parser.c
tests/check-qjson.c
This page took 0.025697 seconds and 4 git commands to generate.