cppcheck/lib
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
..
CMakeLists.txt use target-specific configuration instead of global ones in CMake (#3534) 2021-10-30 09:08:07 +02:00
analyzer.h Propagate partially uninit variables in ValueFlow (#3533) 2021-10-30 07:43:37 +02:00
analyzerinfo.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
analyzerinfo.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
astutils.cpp Fix 10605: FP containerOutOfBounds with empty() check (#3572) 2021-11-25 22:34:00 +01:00
astutils.h Fix 10605: FP containerOutOfBounds with empty() check (#3572) 2021-11-25 22:34:00 +01:00
bughuntingchecks.cpp Revert "Clang import; This experimental feature didn't "take off" much. After a lot of work we are still far fram the goal. I remove it now but don't rule out completely that it could ever be added again." 2021-04-30 16:47:02 +02:00
bughuntingchecks.h Add 'bughuntingchecks' 2020-06-19 13:16:48 +02:00
calculate.h Fix 10429: Regression: invalidIterator (#3603) 2021-12-05 15:46:52 +01:00
check.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
check.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
check64bit.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
check64bit.h Update copyright year 2021-09-26 11:34:56 +02:00
checkassert.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
checkassert.h Update copyright year 2021-09-26 11:34:56 +02:00
checkautovariables.cpp autovarInvalidDeallocation: Fix fp with impossible value (#3604) 2021-12-05 15:47:21 +01:00
checkautovariables.h Fix 10033: false negative: danglingTemporaryLifetime with usage of reference from nested object not detected (#3542) 2021-11-01 19:23:15 +01:00
checkbool.cpp Fix FPs in bitwiseOnBoolean (#3455) 2021-09-19 15:20:57 +02:00
checkbool.h Update copyright year 2021-09-26 11:34:56 +02:00
checkboost.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checkboost.h Update copyright year 2021-09-26 11:34:56 +02:00
checkbufferoverrun.cpp Fix FN buffer overrun with array of pointers (#3582) 2021-11-27 12:15:36 +01:00
checkbufferoverrun.h argumentSize: Clarify error message 2021-08-29 15:38:58 +02:00
checkclass.cpp fix false positive of virtual function call (#3553) 2021-11-11 07:53:30 +01:00
checkclass.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checkcondition.cpp prevent uncaught exception in ThreadExecutor::handleRead() (#3514) 2021-10-20 20:41:42 +02:00
checkcondition.h Fixed #10448 (FN compareValueOutOfTypeRangeError with int32_t) 2021-09-12 15:08:14 +02:00
checkexceptionsafety.cpp Typos found by running "codespell" (#3324) 2021-07-02 17:41:51 +02:00
checkexceptionsafety.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checkfunctions.cpp Fixed #10523 (FP: missingReturn with nested switch statements) 2021-10-31 14:48:29 +01:00
checkfunctions.h Update copyright year 2021-09-26 11:34:56 +02:00
checkinternal.cpp Update copyright year 2021-09-26 11:34:56 +02:00
checkinternal.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checkio.cpp Fix #10632 (FN charset in format string) (#3590) 2021-12-01 09:51:48 +01:00
checkio.h Fix #10632 (FN charset in format string) (#3590) 2021-12-01 09:51:48 +01:00
checkleakautovar.cpp Fix and tests for #7622, #10381, #10382 (#3588) 2021-11-29 22:51:35 +01:00
checkleakautovar.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checkmemoryleak.cpp Fix 10631: FP, Regression: error: Return value of allocation function 'makeThing' is not stored. (#3585) 2021-11-29 07:06:43 +01:00
checkmemoryleak.h Update copyright year 2021-09-26 11:34:56 +02:00
checknullpointer.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
checknullpointer.h Update copyright year 2021-09-26 11:34:56 +02:00
checkother.cpp Fixed #9759 (False positive: constParameter on parameter used by non-const call via pointer to member function) 2021-11-21 20:03:38 +01:00
checkother.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checkpostfixoperator.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
checkpostfixoperator.h Update copyright year 2021-09-26 11:34:56 +02:00
checksizeof.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checksizeof.h Update copyright year 2021-09-26 11:34:56 +02:00
checkstl.cpp Find iterator mismatch when using temporary containers (#3579) 2021-12-04 12:55:56 +01:00
checkstl.h chmod; Use 644 for source files 2021-11-17 08:25:25 +01:00
checkstring.cpp Minor: add endsWith() template, empy() check (#3472) 2021-09-28 20:34:21 +02:00
checkstring.h Update copyright year 2021-09-26 11:34:56 +02:00
checktype.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checktype.h Update copyright year 2021-09-26 11:34:56 +02:00
checkuninitvar.cpp Propagate partially uninit variables in ValueFlow (#3533) 2021-10-30 07:43:37 +02:00
checkuninitvar.h Clang: do not silently abort from checks 2021-11-29 20:09:39 +01:00
checkunusedfunctions.cpp Fixed #9220 (False positive: Unused function check for template parameter) 2021-09-12 20:27:49 +02:00
checkunusedfunctions.h Update copyright year 2021-09-26 11:34:56 +02:00
checkunusedvar.cpp Clang: do not silently abort from checks 2021-11-29 20:09:39 +01:00
checkunusedvar.h Update copyright year 2021-09-26 11:34:56 +02:00
checkvaarg.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checkvaarg.h Update copyright year 2021-09-26 11:34:56 +02:00
clangimport.cpp clang import: fixed problem with nameless struct 2021-11-29 07:00:18 +01:00
clangimport.h Revert "Clang import; This experimental feature didn't "take off" much. After a lot of work we are still far fram the goal. I remove it now but don't rule out completely that it could ever be added again." 2021-04-30 16:47:02 +02:00
color.cpp Fix MSVC build and some warnings (#3334) 2021-07-16 21:55:12 +02:00
color.h Fix MSVC build and some warnings (#3334) 2021-07-16 21:55:12 +02:00
config.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
cppcheck.cpp use -Weverything for clang in CMake / fixed some warnings (#3519) 2021-10-24 11:06:48 +02:00
cppcheck.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
cppcheck.natvis
cppcheck.vcxproj MSVC: add missing files to project (#3500) 2021-10-11 19:01:49 +02:00
cppcheck.vcxproj.filters Fix MSVC build and some warnings (#3334) 2021-07-16 21:55:12 +02:00
ctu.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
ctu.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
errorlogger.cpp klocwork; fix uninitialized struct member. FN ticket: #10573 2021-10-28 17:09:33 +02:00
errorlogger.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
errortypes.cpp use -Weverything for clang in CMake / fixed some warnings (#3519) 2021-10-24 11:06:48 +02:00
errortypes.h Update Copyright year 2021-03-21 20:58:32 +01:00
exprengine.cpp fix klocwork warning; pointer is checked and then dereferenced. FN ticket: #10570 2021-10-29 19:23:01 +02:00
exprengine.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
forwardanalyzer.cpp Fix 10429: Regression: invalidIterator (#3603) 2021-12-05 15:46:52 +01:00
forwardanalyzer.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
importproject.cpp Implement support for passing multiple file filters (#3479) 2021-11-23 22:51:45 +01:00
importproject.h Implement support for passing multiple file filters (#3479) 2021-11-23 22:51:45 +01:00
infer.cpp Refactor: Use interval analysis for symbolic values for inferCondtion (#3488) 2021-10-09 16:19:06 +02:00
infer.h Refactor: Use interval analysis for symbolic values for inferCondtion (#3488) 2021-10-09 16:19:06 +02:00
lib.pri Refactor: Use interval analysis for symbolic values for inferCondtion (#3488) 2021-10-09 16:19:06 +02:00
library.cpp Add support for string_view (#3480) 2021-10-05 08:28:19 +02:00
library.h Add support for string_view (#3480) 2021-10-05 08:28:19 +02:00
matchcompiler.h Update copyright year 2021-09-26 11:34:56 +02:00
mathlib.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
mathlib.h Refactoring; Reuse simplecpp::characterLiteralToLL 2021-05-02 13:44:37 +02:00
path.cpp feat: add support for .ipp and .ixx extensions (#3383) 2021-08-09 10:46:56 +02:00
path.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
pathanalysis.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
pathanalysis.h made check.h less heavy (#2633) 2020-05-23 07:16:49 +02:00
pathmatch.cpp Update Copyright year 2020-10-03 09:15:56 +02:00
pathmatch.h
pcrerules.pri
platform.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
platform.h Update copyright year 2021-09-26 11:34:56 +02:00
precompiled.h Visual Studio: Use new files precompiled.h with several common includes for core and testrunner. 2020-05-29 12:16:04 +02:00
preprocessor.cpp Shadow variables, const, rename function (#3456) 2021-09-15 20:28:58 +02:00
preprocessor.h Update copyright year 2021-09-26 11:34:56 +02:00
programmemory.cpp Handle for loop conditions in afterCondition (#3561) 2021-11-14 18:30:36 +01:00
programmemory.h Refactor: Use ValueFlow::Value for ProgramMemory execute instead of integers (#3477) 2021-10-04 07:53:58 +02:00
reverseanalyzer.cpp Fix 10605: FP containerOutOfBounds with empty() check (#3572) 2021-11-25 22:34:00 +01:00
reverseanalyzer.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
settings.cpp Fix member shadowing (#3563) 2021-11-15 20:37:08 +01:00
settings.h Implement support for passing multiple file filters (#3479) 2021-11-23 22:51:45 +01:00
standards.h Update Copyright year 2020-10-03 09:15:56 +02:00
summaries.cpp Summaries: Moved to its own files 2020-12-20 19:53:58 +01:00
summaries.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
suppressions.cpp Update copyright year 2021-09-26 11:34:56 +02:00
suppressions.h Refactor: fix member shadowing, return by const ref (#3407) 2021-08-21 22:00:45 +02:00
symboldatabase.cpp Track lifetimes of lambdas that capture the 'this' variable (#3594) 2021-12-04 17:00:55 +01:00
symboldatabase.h Fix 10555: FP knownConditionTrueFalse with non-const function in base class (#3559) 2021-11-12 20:05:43 +01:00
templatesimplifier.cpp Fixed #10432 (Only the first default argument was copied from the forward declaration;) (#3530) 2021-11-15 20:37:46 +01:00
templatesimplifier.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
timer.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
timer.h Update copyright year 2021-09-26 11:34:56 +02:00
token.cpp Fix 10552: Internal error with unusedFunction (#3600) 2021-12-05 15:46:17 +01:00
token.h Fix 10552: Internal error with unusedFunction (#3600) 2021-12-05 15:46:17 +01:00
tokenize.cpp Fix 10552: Internal error with unusedFunction (#3600) 2021-12-05 15:46:17 +01:00
tokenize.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
tokenlist.cpp Validate asserts in the AST to fix crash in 10442 (#3428) 2021-08-29 20:45:31 +02:00
tokenlist.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
tokenrange.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
utils.cpp Implement support for passing multiple file filters (#3479) 2021-11-23 22:51:45 +01:00
utils.h Implement support for passing multiple file filters (#3479) 2021-11-23 22:51:45 +01:00
valueflow.cpp Fix 10429: Regression: invalidIterator (#3603) 2021-12-05 15:46:52 +01:00
valueflow.h Track lifetimes of lambdas that capture the 'this' variable (#3594) 2021-12-04 17:00:55 +01:00
valueptr.h Update copyright year 2021-09-26 11:34:56 +02:00
version.h 2.6 dev: set version 2021-10-02 13:15:12 +02:00
version.rc