2026-10-06 03:40 ftp://ftp.de.debian.org/debian/pool/main/d/daemonize/daemonize_1.7.8.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.12.107+deb13-amd64-x86_64-with-glibc2.41 python: 3.12.14 client-version: 1.4.0 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.22.0 head-info: 746b3a7 (2026-10-04 08:53:56 +0200) count: 24 24 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: daemonize-release-1.7.8/daemon.c:55:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] daemonize-release-1.7.8/daemonize.c:65:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] daemonize-release-1.7.8/daemonize.c:85:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] daemonize-release-1.7.8/daemonize.c:119:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] daemonize-release-1.7.8/daemonize.c:173:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] daemonize-release-1.7.8/daemonize.c:273:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] daemonize-release-1.7.8/daemonize.c:327:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] daemonize-release-1.7.8/daemonize.c:353:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] daemonize-release-1.7.8/daemonize.c:451:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] daemonize-release-1.7.8/daemonize.c:269:16: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] daemonize-release-1.7.8/daemonize.c:150:6: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] daemonize-release-1.7.8/daemonize.c:148:33: note: Assuming allocation function fails daemonize-release-1.7.8/daemonize.c:148:18: note: Assignment 'name=(char*)malloc(name_len+1)', assigned value is 0 daemonize-release-1.7.8/daemonize.c:150:6: note: Null pointer dereference daemonize-release-1.7.8/daemonize.c:151:6: warning: If memory allocation fails, then there is a possible null pointer dereference: value [nullPointerOutOfMemory] daemonize-release-1.7.8/daemonize.c:149:34: note: Assuming allocation function fails daemonize-release-1.7.8/daemonize.c:149:19: note: Assignment 'value=(char*)malloc(val_len+1)', assigned value is 0 daemonize-release-1.7.8/daemonize.c:151:6: note: Null pointer dereference daemonize-release-1.7.8/daemonize.c:152:20: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] daemonize-release-1.7.8/daemonize.c:148:33: note: Assuming allocation function fails daemonize-release-1.7.8/daemonize.c:148:18: note: Assignment 'name=(char*)malloc(name_len+1)', assigned value is 0 daemonize-release-1.7.8/daemonize.c:152:20: note: Null pointer dereference daemonize-release-1.7.8/daemonize.c:154:20: warning: If memory allocation fails, then there is a possible null pointer dereference: value [nullPointerOutOfMemory] daemonize-release-1.7.8/daemonize.c:149:34: note: Assuming allocation function fails daemonize-release-1.7.8/daemonize.c:149:19: note: Assignment 'value=(char*)malloc(val_len+1)', assigned value is 0 daemonize-release-1.7.8/daemonize.c:154:20: note: Null pointer dereference daemonize-release-1.7.8/daemonize.c:262:71: style: Argument 'pid_file' shadows outer variable [shadowVariable] daemonize-release-1.7.8/daemonize.c:35:21: note: Shadowed variable daemonize-release-1.7.8/daemonize.c:262:71: note: Shadow argument daemonize-release-1.7.8/daemonize.c:138:11: style: Variable 'eq' can be declared as pointer to const [constVariablePointer] daemonize-release-1.7.8/flock.c:38:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] daemonize-release-1.7.8/getopt.c:70:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] daemonize-release-1.7.8/getopt.c:65:17: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] daemonize-release-1.7.8/setenv.c:31:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] daemonize-release-1.7.8/setenv.c:37:17: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] daemonize-release-1.7.8/setenv.c:36:36: note: Assuming allocation function fails daemonize-release-1.7.8/setenv.c:36:21: note: Assignment 'buf=(char*)malloc(strlen(name)+strlen(value)+2)', assigned value is 0 daemonize-release-1.7.8/setenv.c:37:17: note: Null pointer dereference daemonize-release-1.7.8/setenv.c:37:17: error: Memory is allocated but not initialized: buf [uninitdata] daemonize-release-1.7.8/testdaemon.c:62:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] daemonize-release-1.7.8/testdaemon.c:33:55: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] diff: DONE