Skip to content

Commit 7e723ef

Browse files
Fix #13711 fuzzing crash (null-pointer-use) in Tokenizer::simplifyCompoundStatements() (danmar#8099)
1 parent 1019e7a commit 7e723ef

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/tokenize.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5707,6 +5707,8 @@ bool Tokenizer::simplifyTokenList1(const char FileName[])
57075707
if (isCPP())
57085708
simplifyExternC();
57095709

5710+
validate();
5711+
57105712
// simplify compound statements: "[;{}] ( { code; } ) ;"->"[;{}] code;"
57115713
simplifyCompoundStatements();
57125714

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(({}namespace d=n));

0 commit comments

Comments
 (0)