mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 11:09:18 +00:00
AK: Break on end of input in JsonParser::consume_quoted_string
Fixes #1599
This commit is contained in:
parent
a769db6078
commit
1bf93d504f
Notes:
sideshowbarker
2024-07-19 07:57:55 +09:00
Author: https://github.com/xTibor
Commit: 1bf93d504f
Pull-request: https://github.com/SerenityOS/serenity/pull/1614
Issue: https://github.com/SerenityOS/serenity/issues/1599
1 changed files with 2 additions and 0 deletions
|
@ -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 != '\\') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue