MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / getErrorMessages

Method getErrorMessages

lib/checkbufferoverrun.cpp:1232–1247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1230}
1231
1232void CheckBufferOverrun::getErrorMessages(ErrorLogger& errorLogger, const Settings &settings) const
1233{
1234 CheckBufferOverrunImpl c(nullptr, settings, errorLogger);
1235 c.arrayIndexError(nullptr, std::vector<Dimension>(), std::vector<ValueFlow::Value>());
1236 c.pointerArithmeticError(nullptr, nullptr, nullptr);
1237 c.negativeIndexError(nullptr, std::vector<Dimension>(), std::vector<ValueFlow::Value>());
1238 c.arrayIndexThenCheckError(nullptr, "i");
1239 c.bufferOverflowError(nullptr, nullptr, Certainty::normal);
1240 c.objectIndexError(nullptr, nullptr, true);
1241 c.argumentSizeError(nullptr, "function", 1, "buffer", nullptr, nullptr);
1242 c.negativeMemoryAllocationSizeError(nullptr, nullptr);
1243 c.negativeArraySizeError(nullptr);
1244 c.terminateStrncpyError(nullptr, "var_name");
1245 // TODO: ctuArrayIndex
1246 // TODO: ctuPointerArith
1247}

Callers

nothing calls this directly

Calls 10

arrayIndexErrorMethod · 0.80
bufferOverflowErrorMethod · 0.80
objectIndexErrorMethod · 0.80
argumentSizeErrorMethod · 0.80
terminateStrncpyErrorMethod · 0.80
negativeIndexErrorMethod · 0.45

Tested by

no test coverage detected