Enable validateVariables(), fix fuzzing crash#6118
Enable validateVariables(), fix fuzzing crash#6118chrchr-github merged 5 commits intodanmar:mainfrom
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 |
| 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.
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.
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.