mirror of
https://github.com/json-c/json-c.git
synced 2026-04-08 23:09:07 +08:00
Issue #616: Change the parsing of surrogate pairs in unicode escapes so it uses a couple of additional states instead of assuming the low surrogate is already present, to ensure that we correctly handle various cases of incremental parsing.
This commit is contained in:
@@ -59,6 +59,8 @@ enum json_tokener_state
|
||||
json_tokener_state_string,
|
||||
json_tokener_state_string_escape,
|
||||
json_tokener_state_escape_unicode,
|
||||
json_tokener_state_escape_unicode_need_escape,
|
||||
json_tokener_state_escape_unicode_need_u,
|
||||
json_tokener_state_boolean,
|
||||
json_tokener_state_number,
|
||||
json_tokener_state_array,
|
||||
|
||||
Reference in New Issue
Block a user