We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a3ddf8 commit 4d502e7Copy full SHA for 4d502e7
src/json/parser.y
@@ -51,10 +51,11 @@ static std::string convert_TOK_STRING()
51
{
52
// Character in hexadecimal Unicode representation, in the format
53
// \uABCD, i.e. the following four digits are part of this character.
54
- assert(p + 4 < yyjsontext + len - 1);
+ char *last_hex_digit = p + 4;
55
+ assert(last_hex_digit < yyjsontext + len - 1);
56
std::string hex(++p, 4);
57
result += codepoint_hex_to_utf8(hex);
- p += 3;
58
+ p = last_hex_digit;
59
break;
60
}
61
default:; /* an error */
0 commit comments