diff options
author | Markus Armbruster <armbru@redhat.com> | 2018-08-23 18:39:55 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2018-08-24 20:26:37 +0200 |
commit | 46a628b1398ae6a58d6847223736431225c4c0cc (patch) | |
tree | 53e184c57fb6767ec72bb336e5770f65f9f969c8 /disas/libvixl | |
parent | de6decfe8e2939464fc27ac2ab4ef87689329fec (diff) | |
download | qemu-46a628b1398ae6a58d6847223736431225c4c0cc.zip qemu-46a628b1398ae6a58d6847223736431225c4c0cc.tar.gz qemu-46a628b1398ae6a58d6847223736431225c4c0cc.tar.bz2 |
json: Reject invalid \uXXXX, fix \u0000
The JSON parser translates invalid \uXXXX to garbage instead of
rejecting it, and swallows \u0000.
Fix by using mod_utf8_encode() instead of flawed wchar_to_utf8().
Valid surrogate pairs are now differently broken: they're rejected
instead of translated to garbage. The next commit will fix them.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180823164025.12553-29-armbru@redhat.com>
Diffstat (limited to 'disas/libvixl')
0 files changed, 0 insertions, 0 deletions