1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-25 13:41:56 +03:00

evaluated i-tests (#344)

This commit is contained in:
Niels
2016-10-30 16:07:17 +01:00
parent 7b4e6cf705
commit 8d1e65f297
5 changed files with 46 additions and 19 deletions

View File

@ -8934,6 +8934,11 @@ basic_json_parser_66:
// skip the next 10 characters (xxxx\uyyyy)
i += 10;
}
else if (codepoint >= 0xDC00 and codepoint <= 0xDFFF)
{
// we found a lone low surrogate
throw std::invalid_argument("missing high surrogate");
}
else
{
// add unicode character(s)