mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Merge pull request #15941 from s-hadinger/berry_fix_lexer_unfinished_strings
Berry fix potential crash when parsing unfinished strings
This commit is contained in:
commit
c6e6dfe852
@ -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