mirror of
https://github.com/nlohmann/json.git
synced 2025-07-12 09:21:42 +03:00
fix of the fix
This commit is contained in:
@ -2772,7 +2772,7 @@ class basic_json
|
||||
if (codepoint >= 0xD800 and codepoint <= 0xDBFF)
|
||||
{
|
||||
// make sure there is a subsequent unicode
|
||||
if (m_cursor - i < 11 and * (i + 5) == '\\' and * (i + 6) == 'u')
|
||||
if ((i + 6 >= m_limit) or * (i + 5) != '\\' or * (i + 6) != 'u')
|
||||
{
|
||||
throw std::invalid_argument("missing low surrogate");
|
||||
}
|
||||
|
Reference in New Issue
Block a user