-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable validateVariables(), fix fuzzing crash #6118
Conversation
We need to adjust the fuzzer tests so they show the actual failure data (actually that applies to all Python tests - I want to clean that up in the future). I think if the exitcode is negative we should show |
So |
@@ -8401,6 +8401,9 @@ void Tokenizer::findGarbageCode() const | |||
else if (Token::Match(tok, "%assign% [") && Token::simpleMatch(tok->linkAt(1), "] ;")) | |||
syntaxError(tok, tok->str() + "[...];"); | |||
|
|||
else if (Token::Match(tok, "[({<] %assign%")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this executed before the symboldatabase? I wonder if the changes in symboldatabase+testgarbage is technically separated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, those are separate changes. validateVariables()
was (a) deactivated and (b) not doing sufficient checking to prevent the crash, so I added the syntaxError
.
This is not so easy because of declarations like |
No description provided.