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) {
|
void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) {
|
||||||
CheckBufferOverrun checkBufferOverrun(tokenizer, settings, errorLogger);
|
CheckBufferOverrun checkBufferOverrun(tokenizer, settings, errorLogger);
|
||||||
checkBufferOverrun.checkGlobalAndLocalVariable();
|
checkBufferOverrun.checkGlobalAndLocalVariable();
|
||||||
if (_tokenizer->isMaxTime())
|
if (_tokenizer && _tokenizer->isMaxTime())
|
||||||
return;
|
return;
|
||||||
checkBufferOverrun.checkStructVariable();
|
checkBufferOverrun.checkStructVariable();
|
||||||
checkBufferOverrun.checkBufferAllocatedWithStrlen();
|
checkBufferOverrun.checkBufferAllocatedWithStrlen();
|
||||||
|
|
Loading…
Reference in New Issue