mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-18 05:28:36 -07:00
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
e2ec3f9768).
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180823164025.12553-26-armbru@redhat.com>
This commit is contained in:
parent
de930f45cb
commit
4b1c0cd7c7
3 changed files with 3 additions and 9 deletions
|
|
@ -93,7 +93,7 @@
|
|||
* interpolation = %((l|ll|I64)[du]|[ipsf])
|
||||
*
|
||||
* Note:
|
||||
* - Input must be encoded in UTF-8.
|
||||
* - Input must be encoded in modified UTF-8.
|
||||
* - Decoding and validating is left to the parser.
|
||||
*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue