mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
AK: Break on end of input in JsonParser::consume_quoted_string
Fixes #1599
This commit is contained in:
parent
a769db6078
commit
1bf93d504f
1 changed files with 2 additions and 0 deletions
|
@ -90,6 +90,8 @@ String JsonParser::consume_quoted_string()
|
||||||
m_index = peek_index;
|
m_index = peek_index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_index == m_input.length())
|
||||||
|
break;
|
||||||
if (ch == '"')
|
if (ch == '"')
|
||||||
break;
|
break;
|
||||||
if (ch != '\\') {
|
if (ch != '\\') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue