mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 03:06:33 +00:00
Berry fix potential crash when parsing unfinished strings
This commit is contained in:
parent
61734674c5
commit
9f8fffd6ba
@ -419,6 +419,9 @@ static btokentype scan_string(blexer *lexer)
|
||||
save(lexer); /* skip '\\.' */
|
||||
}
|
||||
}
|
||||
if (c == EOS) {
|
||||
be_lexerror(lexer, "unfinished string");
|
||||
}
|
||||
c = next(lexer); /* skip '"' or '\'' */
|
||||
/* check if there's an additional string literal right after */
|
||||
skip_delimiter(lexer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user