Skip to content

Commit

Permalink
Fix #12803 fuzzing crash in Tokenizer::setVarIdPass2() (#6530)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Jun 15, 2024
1 parent 27f155c commit a5e2456
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tokenize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5107,6 +5107,8 @@ void Tokenizer::setVarIdPass2()
classnameTokens.push_back(tokStart->next());
tokStart = tokStart->tokAt(2);
}
if (!tokStart)
syntaxError(tok);
}

std::string classname;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
i
class q::_

0 comments on commit a5e2456

Please sign in to comment.