Skip to content

Commit e2640e7

Browse files
Fix #13497 fuzzing crash (null-pointer-use) in Tokenizer::simplifyTypedefCpp() (danmar#8100)
1 parent 7e723ef commit e2640e7

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
@@ -1125,6 +1125,8 @@ void Tokenizer::simplifyTypedef()
11251125
list.front()->deleteThis();
11261126
}
11271127

1128+
validate();
1129+
11281130
simplifyTypedefCpp();
11291131
}
11301132

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
typedef i(*const type2)();typedef t(ty)();(v ty)type2()

0 commit comments

Comments
 (0)