danmar/cppcheck — pull request #256 by xypron (2014-03-07 18:53:39+00:00)
Title: 5505: FP: Array accessed out of bounds

CheckBufferOverrun::checkFunctionParameter alreacy considered usage of a
function parameter inside an if block as a special case.

With the patch the same is done for switch statements.

A test is added.

Signed-off-by: Heinrich Schuchardt