1.
CellBuffer.cxx:350]: (style) Array index 'currentAction' is used before limits check.
Source code is
if (actions[currentAction].at == startAction && currentAction < maxAction)
currentAction++;
CellBuffer.cxx:355]: (style) Array index 'act' is used before limits check.
while (actions[act].at != startAction && act < maxAction) {
act++;
}
This is actually safe due to the interaction of currentAction, maxAction, and lenActions. Changed anyway to silence Cppcheck with [99e46e].
Cppcheck is quite buggy as it makes too many assumptions about the meaning of code. Unless a real problem can be demonstrated, Cppcheck warnings should be ignored.
Related
Commit: [99e46e]