CheckBufferOverrun: cleanup

This commit is contained in:
Daniel Marjamäki 2019-03-12 18:58:14 +01:00
parent 11e32ff445
commit 2a00667609
1 changed files with 2 additions and 16 deletions

View File

@ -34,20 +34,6 @@
#include <string> #include <string>
#include <vector> #include <vector>
class Settings;
class SymbolDatabase;
class Token;
namespace ValueFlow {
class Value;
} // namespace ValueFlow
namespace tinyxml2 {
class XMLElement;
} // namespace tinyxml2
// CWE ids used
static const struct CWE CWE119(119U); // Improper Restriction of Operations within the Bounds of a Memory Buffer
class Variable;
/// @addtogroup Checks /// @addtogroup Checks
/// @{ /// @{
@ -73,14 +59,14 @@ public:
: Check(myName(), tokenizer, settings, errorLogger) { : Check(myName(), tokenizer, settings, errorLogger) {
} }
void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE { void runChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE {
CheckBufferOverrun checkBufferOverrun(tokenizer, settings, errorLogger); CheckBufferOverrun checkBufferOverrun(tokenizer, settings, errorLogger);
checkBufferOverrun.arrayIndex(); checkBufferOverrun.arrayIndex();
checkBufferOverrun.bufferOverflow(); checkBufferOverrun.bufferOverflow();
checkBufferOverrun.arrayIndexThenCheck(); checkBufferOverrun.arrayIndexThenCheck();
} }
void runChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE { void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE {
(void)tokenizer; (void)tokenizer;
(void)settings; (void)settings;
(void)errorLogger; (void)errorLogger;