Skip to content

Commit

Permalink
AK: Break on end of input in JsonParser::consume_quoted_string
Browse files Browse the repository at this point in the history
  • Loading branch information
xTibor authored and awesomekling committed Apr 4, 2020
1 parent a769db6 commit 1bf93d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AK/JsonParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 != '\\') {
Expand Down

0 comments on commit 1bf93d5

Please sign in to comment.