summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@gmail.com>2021-07-09 16:31:12 +0100
committerAndreas Kling <kling@serenityos.org>2021-07-11 23:19:56 +0200
commit06fc099310a7a52e43b72ec1209a7e3a15bc2fad (patch)
treef18d391b42c1aaec74cc0b845895d433fdf0f6cd /Userland
parent06cd41877025caddf9154d33a70f8e7b8f63bbc3 (diff)
downloadserenity-06fc099310a7a52e43b72ec1209a7e3a15bc2fad.zip
LibWeb: Fix Off-by-one error in CSS::Parser::next_token()
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
index c4453cfed5..2a4d65dea7 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
+++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
@@ -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;
}