summaryrefslogtreecommitdiff
path: root/json-glib/json-parser.c
diff options
context:
space:
mode:
authorJames Westman <james@flyingpimonster.net>2020-11-16 22:56:08 -0600
committerJames Westman <james@flyingpimonster.net>2020-11-30 17:14:00 -0600
commit7711cbc7f8d85d909bd4ccaa0c4c0f8d306f872f (patch)
treeb16113f9c4d068de9cd0aebfbdf31ba57807258a /json-glib/json-parser.c
parentf4eeb6624eb4269f95067a83f78c4590cf2de9fb (diff)
downloadjson-glib-7711cbc7f8d85d909bd4ccaa0c4c0f8d306f872f.tar.gz
scanner: Fix crash on malformed surrogate pairs
JSON-GLib would crash when trying to decode escaped Unicode characters, if a character of a surrogate pair was detected but it was in the wrong range, or if the following character was not in the correct range. Fixed by emitting an error ("Parse error: scanner: malformed surrogate pair") before the assertion is run. Fixes #26.
Diffstat (limited to 'json-glib/json-parser.c')
0 files changed, 0 insertions, 0 deletions