Avoid null pointer access in CheckBufferOverrun::runSimplifiedChecks
This commit is contained in:
parent
ded8d80b23
commit
4eef5642c9
|
@ -63,7 +63,7 @@ public:
|
|||
void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) {
|
||||
CheckBufferOverrun checkBufferOverrun(tokenizer, settings, errorLogger);
|
||||
checkBufferOverrun.checkGlobalAndLocalVariable();
|
||||
if (_tokenizer->isMaxTime())
|
||||
if (_tokenizer && _tokenizer->isMaxTime())
|
||||
return;
|
||||
checkBufferOverrun.checkStructVariable();
|
||||
checkBufferOverrun.checkBufferAllocatedWithStrlen();
|
||||
|
|
Loading…
Reference in New Issue