aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2018-08-23 18:39:48 +0200
committerMarkus Armbruster <armbru@redhat.com>2018-08-24 20:26:37 +0200
commita89d3104a29c400dfed4b675d6385a17223f9e0f (patch)
tree4e8c028c05e38301d8c78d88e0d5af6fca68d962 /util
parent00ea57fadcb899b7e21079dacb47b6fb8af5b2fa (diff)
downloadqemu-a89d3104a29c400dfed4b675d6385a17223f9e0f.zip
qemu-a89d3104a29c400dfed4b675d6385a17223f9e0f.tar.gz
qemu-a89d3104a29c400dfed4b675d6385a17223f9e0f.tar.bz2
check-qjson: Document we expect invalid UTF-8 to be rejected
The JSON parser rejects some invalid sequences, but accepts others without correcting the problem. We should either reject all invalid sequences, or minimize overlong sequences and replace all other invalid sequences by a suitable replacement character. A common choice for replacement is U+FFFD. I'm going to implement the former. Update the comments in utf8_string() to expect this. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20180823164025.12553-22-armbru@redhat.com>
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions