Paolo Bonzini writes:
> On 08/08/2018 14:03, Markus Armbruster wrote:
>> +if (cp >= 0xD800 && cp <= 0xDBFF && !leading_surrogate
>> +&& ptr[1] == '\\' && ptr[2] == 'u') {
>> +ptr += 2;
>> +leading_surrogate = cp;
>> +
Eric Blake writes:
> On 08/08/2018 07:03 AM, Markus Armbruster wrote:
>> The JSON parser treats each half of a surrogate pair as unpaired
>> surrogate. Fix it to recognize surrogate pairs.
>>
>> Signed-off-by: Markus Armbruster
>> ---
>> qobject/json-parser.c | 16 +++-
>> tests/
On 08/08/2018 14:03, Markus Armbruster wrote:
> +if (cp >= 0xD800 && cp <= 0xDBFF && !leading_surrogate
> +&& ptr[1] == '\\' && ptr[2] == 'u') {
> +ptr += 2;
> +leading_surrogate = cp;
> +goto hex;
> +
On 08/08/2018 07:03 AM, Markus Armbruster wrote:
The JSON parser treats each half of a surrogate pair as unpaired
surrogate. Fix it to recognize surrogate pairs.
Signed-off-by: Markus Armbruster
---
qobject/json-parser.c | 16 +++-
tests/check-qjson.c | 3 +--
2 files change
The JSON parser treats each half of a surrogate pair as unpaired
surrogate. Fix it to recognize surrogate pairs.
Signed-off-by: Markus Armbruster
---
qobject/json-parser.c | 16 +++-
tests/check-qjson.c | 3 +--
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/qobj