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
commit 1bf93d504f
Notes: sideshowbarker 2024-07-19 07:57:55 +09:00

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 != '\\') {