cppcheck/test
Heinrich Schuchardt bd67db96f1 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 <xypron.glpk@gmx.de>
2014-03-07 19:51:13 +01:00
..
options.cpp test: tabs to spaces, remove trailing spaces and extra empty lines at the end of files 2012-09-17 13:51:40 +02:00
options.h Changed the order of some structures in order to improve, even if for a bit, their padding. 2012-05-14 20:49:03 +02:00
redirect.h CheckMemoryLeak: add '?1:0' to clarify the value of the argument to 'deleteNext'; Tokenize.cpp: in simplifyCompoundAssignment(), remove ':' odd code used to fix a weird test case ('case' code not inside a function body), remove useless 'tok->next() != NULL' check (already true by previous condition); in simplifyConditionOperator(), handle better the parenthesis skipping code and remove useless ')'check; in simplifyQuestionMark(), remove useless 'tok->tokAt(-2)' check (Token::Match returns false if the token is NULL), add more patterns to Token::Match to handle more test cases; in simplifyBitFields(), add 'const' to 'offset' bool. RedirectOutputError: style nitpick change to declaration of a pointer. 2012-10-19 14:19:52 +02:00
test.cxx test: tabs to spaces, remove trailing spaces and extra empty lines at the end of files 2012-09-17 13:51:40 +02:00
test.pro Don't include tinyxml from both lib.pri and test.pro 2013-08-19 19:44:29 +04:00
test64bit.cpp Check64Bit: Fixed false positive about returning integer for 'p+(n*80)' 2013-10-08 06:36:45 +02:00
testassert.cpp Fixed #4937 (false positive: Assert calls a function which may have desired side effects) 2013-08-22 06:38:54 +02:00
testassignif.cpp Splitted simplification out of tokenize() 2013-12-30 17:45:28 +01:00
testautovariables.cpp Splitted simplification out of tokenize() 2013-12-30 17:45:28 +01:00
testbool.cpp testbool: same for checkComparisonOfBoolWithBool 2014-01-10 21:08:11 +01:00
testboost.cpp Splitted simplification out of tokenize() 2013-12-30 17:45:28 +01:00
testbufferoverrun.cpp 5505: FP: Array accessed out of bounds 2014-03-07 19:51:13 +01:00
testcharvar.cpp Updated to AStyle 2.03, require this version 2013-08-07 16:27:37 +02:00
testclass.cpp Splitted simplification out of tokenize() 2013-12-30 17:45:28 +01:00
testcmdlineparser.cpp revert: commit f6da9d4e3c 2014-01-12 22:47:21 +01:00
testconstructors.cpp Fixed #5279 (False positive: warning (uninitMemberVar): Member variable 'ToDoubleArray::mfNaN' is not initialized in the constructor. (modified #5170 example)) 2014-01-01 18:34:39 +01:00
testcppcheck.cpp Updated to AStyle 2.03, require this version 2013-08-07 16:27:37 +02:00
testdivision.cpp Updated to AStyle 2.03, require this version 2013-08-07 16:27:37 +02:00
testerrorlogger.cpp Simplified code in testerrorlogger by reusing constant object. 2013-08-07 17:02:35 +02:00
testexceptionsafety.cpp Updated to AStyle 2.03, require this version 2013-08-07 16:27:37 +02:00
testfilelister.cpp Refactoring FileLister and Path so they don't depend on Library 2013-10-31 19:09:01 +01:00
testfiles.pri Add new experimental value flow analysis 2014-01-04 20:57:02 +01:00
testincompletestatement.cpp Splitted simplification out of tokenize() 2013-12-30 17:45:28 +01:00
testinternal.cpp CheckInternal: Improved checking of multiCompare patterns. The multiCompare pattern can contain any %cmd% until there is non-%cmd% used. For instance %var%|%num% is handled ok. 2014-01-05 23:03:36 +01:00
testio.cpp Fixed #5248 (False positive: Invalid argument in scanf for %zd) 2014-01-14 06:09:13 +01:00
testleakautovar.cpp Splitted simplification out of tokenize() 2013-12-30 17:45:28 +01:00
testlibrary.cpp Forward declare tinyxml type used in library.h to avoid problems with dynamic linked configuration. 2013-12-31 12:30:17 +01:00
testmathlib.cpp Fixed #5142 (False positive with floating-point special cases in conditions) 2013-11-04 11:56:43 +01:00
testmemleak.cpp Merge pull request #226 from scriptum/rpg-fix-function-parameter 2014-01-28 20:32:56 -08:00
testnonreentrantfunctions.cpp Splitted simplification out of tokenize() 2013-12-30 17:45:28 +01:00
testnullpointer.cpp CheckNullPointer: Update std.cfg and test that updates are correct 2014-01-27 17:33:16 +01:00
testobsoletefunctions.cpp Splitted simplification out of tokenize() 2013-12-30 17:45:28 +01:00
testoptions.cpp testoptions: reverted commit 184db3900e 2013-11-01 01:28:05 +01:00
testother.cpp Replaced duplicated logf(2.0) with logf(2.0f) unittest 2014-01-23 16:19:30 +01:00
testpath.cpp Updated to AStyle 2.03, require this version 2013-08-07 16:27:37 +02:00
testpathmatch.cpp Reuse constant objects in testpathmatch.cpp, small simplification in testsuppressions.cpp and testthreadexecutor.cpp 2013-08-07 17:55:31 +02:00
testpostfixoperator.cpp Splitted simplification out of tokenize() 2013-12-30 17:45:28 +01:00
testpreprocessor.cpp Preprocessor: fixed 8.0E+007 in macros 2014-01-08 18:05:14 +01:00
testrunner.cpp Updating year 2012 -> 2013 to .cpp and .h files and man page. 2013-01-01 18:29:08 +02:00
testrunner.vcxproj value flow: Updated Visual Studio files 2014-01-05 09:52:37 +01:00
testrunner.vcxproj.filters value flow: Updated Visual Studio files 2014-01-05 09:52:37 +01:00
testsimplifytokens.cpp value flow: use more specific bailouts when analysing value flow after assignment 2014-01-22 06:38:25 +01:00
testsizeof.cpp Calculation in sizeof: Fixed FP for sizeof(Fred**) 2013-12-26 13:52:58 +01:00
teststl.cpp Fixed #4938: (.empty() method false positive for non-STL classes) 2014-01-30 18:09:24 -03:00
testsuite.cpp Moved several hardcoded function names in format string checking into libraries (std.cfg and windows.cfg). 2014-01-12 03:44:24 -08:00
testsuite.h Moved several hardcoded function names in format string checking into libraries (std.cfg and windows.cfg). 2014-01-12 03:44:24 -08:00
testsuppressions.cpp Fixed #4733 (defective unusedStructMember warning) 2013-08-28 06:46:32 +02:00
testsymboldatabase.cpp Add Variable::isStlType function 2014-01-28 11:44:56 -03:00
testthreadexecutor.cpp Reuse constant objects in testpathmatch.cpp, small simplification in testsuppressions.cpp and testthreadexecutor.cpp 2013-08-07 17:55:31 +02:00
testtimer.cpp Updated to AStyle 2.03, require this version 2013-08-07 16:27:37 +02:00
testtoken.cpp Testtoken:matchNumeric(): extended testing about some missing testcases. 2013-09-30 15:55:36 -07:00
testtokenize.cpp ast: fixed syntax tree for 'a=(b)?1:0'. The parentheses should not be in the syntax tree 2014-01-30 17:31:06 +01:00
testuninitvar.cpp CheckNullPointer: use library instead of hard coded info 2014-01-26 16:19:49 +01:00
testunusedfunctions.cpp Extended Qt support through Library 2013-10-20 14:09:10 +02:00
testunusedprivfunc.cpp Fixed #4787 (False Positive: Unused private function) 2014-01-01 18:36:51 +01:00
testunusedvar.cpp Fixed #5154 (Tokenizer: wrong handling of msvc 'for each') 2013-12-17 06:34:27 +01:00
testutils.h Add Variable::isStlType function 2014-01-28 11:44:56 -03:00
testvalueflow.cpp Fixed #5433 (FP:Possible null pointer dereference) 2014-01-31 15:43:34 +01:00