cppcheck/test
Rikard Falkeborn 1a50146745
autovarInvalidDeallocation: Fix fp with impossible value (#3604)
daca reports new false positives after db4f94fdfe on the form:

	void f() {
	    char *ptr = malloc(10);
	    char *empty_str = "";
	    if (ptr == NULL)
	        ptr = empty_str;
	    if (ptr != empty_str)
	        free(ptr);
	}

Add a check that the value is not impossible to avoid this.
2021-12-05 15:47:21 +01:00
..
bug-hunting Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
cfg windows.cfg: Added a regression test for GetPrivateProfileString() as we had a FP in the past 8b6c14aa48 2021-10-17 11:05:19 +02:00
cli streamlined message/error printing of CmdLineParser (#3524) 2021-10-30 13:30:48 +02:00
synthetic Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
testsuites Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
CMakeLists.txt use target-specific configuration instead of global ones in CMake (#3534) 2021-10-30 09:08:07 +02:00
options.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
options.h Update copyright year 2021-09-26 11:34:56 +02:00
precompiled.h Update Copyright year 2021-03-21 20:58:32 +01:00
redirect.h Update copyright year 2021-09-26 11:34:56 +02:00
test.cxx
test64bit.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testassert.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testastutils.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testautovariables.cpp autovarInvalidDeallocation: Fix fp with impossible value (#3604) 2021-12-05 15:47:21 +01:00
testbool.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testboost.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testbufferoverrun.cpp Fix 10621: FP arrayIndexOutOfBoundsCond with multiple index checks (#3597) 2021-12-04 08:54:04 +01:00
testbughuntingchecks.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testcharvar.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testclangimport.cpp clang import: fixed problem with nameless struct 2021-11-29 07:00:18 +01:00
testclass.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testcmdlineparser.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
testcondition.cpp Fix 10624: FP knownConditionTrueFalse with pointer member and dynamic cast (#3598) 2021-12-04 08:54:24 +01:00
testconstructors.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testcppcheck.cpp Update copyright year 2021-09-26 11:34:56 +02:00
testerrorlogger.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
testexceptionsafety.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testexprengine.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testfilelister.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
testfunctions.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testgarbage.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testimportproject.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
testincompletestatement.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
testinternal.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testio.cpp Fix #10632 (FN charset in format string) (#3590) 2021-12-01 09:51:48 +01:00
testleakautovar.cpp Fix and tests for #7622, #10381, #10382 (#3588) 2021-11-29 22:51:35 +01:00
testlibrary.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testmathlib.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
testmemleak.cpp Fix #10632 (FN charset in format string) (#3590) 2021-12-01 09:51:48 +01:00
testnullpointer.cpp Add tests, todo for #9291, #9949 (#3593) 2021-12-02 17:28:31 +01:00
testoptions.cpp Update copyright year 2021-09-26 11:34:56 +02:00
testother.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testpath.cpp Update copyright year 2021-09-26 11:34:56 +02:00
testpathmatch.cpp Update copyright year 2021-09-26 11:34:56 +02:00
testplatform.cpp Update copyright year 2021-09-26 11:34:56 +02:00
testpostfixoperator.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testpreprocessor.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
testrunner.cpp Update copyright year 2021-09-26 11:34:56 +02:00
testrunner.vcxproj Fix MSVC build and some warnings (#3334) 2021-07-16 21:55:12 +02:00
testrunner.vcxproj.filters Remove TestSamples 2021-07-10 21:04:38 +02:00
testsimplifytemplate.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testsimplifytokens.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testsimplifytypedef.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testsimplifyusing.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testsizeof.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
teststl.cpp Fix 10429: Regression: invalidIterator (#3603) 2021-12-05 15:46:52 +01:00
teststring.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testsuite.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
testsuite.h ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testsummaries.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testsuppressions.cpp Propagate partially uninit variables in ValueFlow (#3533) 2021-10-30 07:43:37 +02:00
testsymboldatabase.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testthreadexecutor.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
testtimer.cpp Update copyright year 2021-09-26 11:34:56 +02:00
testtoken.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testtokenize.cpp Fix 10552: Internal error with unusedFunction (#3600) 2021-12-05 15:46:17 +01:00
testtokenlist.cpp Update copyright year 2021-09-26 11:34:56 +02:00
testtokenrange.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testtype.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testuninitvar.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testunusedfunctions.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testunusedprivfunc.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
testunusedvar.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testutils.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
testutils.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
testvaarg.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testvalueflow.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00
testvarid.cpp ASSERT() on calls to Tokenizer::tokenize() in test code (#3501) 2021-11-29 07:34:39 +01:00