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 <address@hidden>
---
qobject/json-parser.c | 35 ++++++-----------------------------
tests/check-qjson.c | 32 +++++++++-----------------------
2 files changed, 15 insertions(+), 52 deletions(-)