diff options
| author | Markus Armbruster <armbru@redhat.com> | 2018-08-23 18:39:48 +0200 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2018-08-24 20:26:37 +0200 |
| commit | a89d3104a29c400dfed4b675d6385a17223f9e0f (patch) | |
| tree | 4e8c028c05e38301d8c78d88e0d5af6fca68d962 /qobject/json-lexer.c | |
| parent | 00ea57fadcb899b7e21079dacb47b6fb8af5b2fa (diff) | |
| download | focaccia-qemu-a89d3104a29c400dfed4b675d6385a17223f9e0f.tar.gz focaccia-qemu-a89d3104a29c400dfed4b675d6385a17223f9e0f.zip | |
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 'qobject/json-lexer.c')
0 files changed, 0 insertions, 0 deletions