Skip to content

Commit c9f1802

Browse files
D0ntPanicfuzyll
authored andcommitted
Fix read one past the end of token list in the line formatter
1 parent 1335512 commit c9f1802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

formatter/generic/genericformatter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ vector<DisassemblyTextLine> GenericLineFormatter::FormatLines(
967967
{
968968
case BraceToken:
969969
// Beginning of string
970-
if (trimmedText == "\"" && tokenIndex + 1 <= currentLine.tokens.size() && currentLine.tokens[tokenIndex + 1].type == StringToken)
970+
if (trimmedText == "\"" && tokenIndex + 1 < currentLine.tokens.size() && currentLine.tokens[tokenIndex + 1].type == StringToken)
971971
{
972972
// Create a ContainerContents item and place it onto the item stack. This will hold anything
973973
// inside the container once the end of the container is found.

0 commit comments

Comments
 (0)