diff options
author | James Westman <james@flyingpimonster.net> | 2020-11-16 22:56:08 -0600 |
---|---|---|
committer | James Westman <james@flyingpimonster.net> | 2020-11-30 17:14:00 -0600 |
commit | 7711cbc7f8d85d909bd4ccaa0c4c0f8d306f872f (patch) | |
tree | b16113f9c4d068de9cd0aebfbdf31ba57807258a /json-glib/json-parser.c | |
parent | f4eeb6624eb4269f95067a83f78c4590cf2de9fb (diff) | |
download | json-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