arrayIndexOutOfBounds: better note
This commit is contained in:
parent
41aa6dfb90
commit
70c2de62b7
|
@ -104,7 +104,7 @@ void CheckBufferOverrun::arrayIndexOutOfBoundsError(const Token *tok, const Arra
|
||||||
} else {
|
} else {
|
||||||
errorPath.push_back(ErrorPathItem(tok, "Array index out of bounds"));
|
errorPath.push_back(ErrorPathItem(tok, "Array index out of bounds"));
|
||||||
if (condition)
|
if (condition)
|
||||||
errorPath.push_back(ErrorPathItem(condition, "Condition '" + condition->expressionString() + "'"));
|
errorPath.push_back(ErrorPathItem(condition, "Assuming that condition '" + condition->expressionString() + "' is not redundant"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (condition != nullptr) {
|
if (condition != nullptr) {
|
||||||
|
|
Loading…
Reference in New Issue