AK: Break on end of input in JsonParser::consume_quoted_string

Fixes #1599
This commit is contained in:
Tibor Nagy 2020-04-04 09:31:48 +02:00 committed by Andreas Kling
parent a769db6078
commit 1bf93d504f

View file

@ -90,6 +90,8 @@ String JsonParser::consume_quoted_string()
m_index = peek_index;
}
if (m_index == m_input.length())
break;
if (ch == '"')
break;
if (ch != '\\') {