| 1351 | } |
| 1352 | |
| 1353 | void CheckStlImpl::stlOutOfBoundsError(const Token *tok, const std::string &num, const std::string &var, bool at) |
| 1354 | { |
| 1355 | if (at) |
| 1356 | reportError(tok, Severity::error, "stlOutOfBounds", "$symbol:" + var + "\nWhen " + num + "==$symbol.size(), $symbol.at(" + num + ") is out of bounds.", CWE788, Certainty::normal); |
| 1357 | else |
| 1358 | reportError(tok, Severity::error, "stlOutOfBounds", "$symbol:" + var + "\nWhen " + num + "==$symbol.size(), $symbol[" + num + "] is out of bounds.", CWE788, Certainty::normal); |
| 1359 | } |
| 1360 | |
| 1361 | void CheckStlImpl::negativeIndex() |
| 1362 | { |
no test coverage detected