decode_utf16_surrogate_pair: assertion failed: (0xd800 <= units[0] && units[0] <= 0xdbff)
This is from the downstream bug report at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772585
$ json-glib-validate test.json ** Json:ERROR:./json-scanner.c:592:decode_utf16_surrogate_pair: assertion failed: (0xd800 <= units[0] && units[0] <= 0xdbff) Aborted
The test file doesn't contain valid JSON, but I'd expect json-glib-validate to exit normally (with nonzero exit code), instead of aborting.
This bug was found using American fuzzy lop: http://lcamtuf.coredump.cx/afl/
Edited by Michael Biebl