summaryrefslogtreecommitdiffstats
path: root/exec.c
diff options
context:
space:
mode:
authorMarkus Armbruster2018-08-23 18:39:45 +0200
committerMarkus Armbruster2018-08-24 20:26:37 +0200
commit340db1ed82f8ced40a3e778c08963005369e2926 (patch)
treec1fef7097ff604764f708120567b7aa608ff80be /exec.c
parentjson: Fix lexer to include the bad character in JSON_ERROR token (diff)
downloadqemu-340db1ed82f8ced40a3e778c08963005369e2926.tar.gz
qemu-340db1ed82f8ced40a3e778c08963005369e2926.tar.xz
qemu-340db1ed82f8ced40a3e778c08963005369e2926.zip
json: Reject unescaped control characters
Fix the lexer to reject unescaped control characters in JSON strings, in accordance with RFC 8259 "The JavaScript Object Notation (JSON) Data Interchange Format". Bonus: we now recover more nicely from unclosed strings. E.g. {"one: 1}\n{"two": 2} now recovers cleanly after the newline, where before the lexer remained confused until the next unpaired double quote or lexical error. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20180823164025.12553-19-armbru@redhat.com>
Diffstat (limited to 'exec.c')
0 files changed, 0 insertions, 0 deletions