mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibWeb: Fix Off-by-one error in CSS::Parser::next_token()
This commit is contained in:
parent
06cd418770
commit
06fc099310
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
Author: https://github.com/AtkinsSJ
Commit: 06fc099310
Pull-request: https://github.com/SerenityOS/serenity/pull/8341
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ Token Parser::peek_token()
|
|||
|
||||
Token Parser::next_token()
|
||||
{
|
||||
if (m_iterator_offset < (int)m_tokens.size()) {
|
||||
if (m_iterator_offset < (int)m_tokens.size() - 1) {
|
||||
++m_iterator_offset;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue