2026-10-06 04:02 ftp://ftp.de.debian.org/debian/pool/main/d/darcs/darcs_2.18.5.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: 13 13 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: darcs-2.18.5/src/atomic_create.c:39:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] darcs-2.18.5/src/atomic_create.c:79:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darcs-2.18.5/src/atomic_create.c:68:11: style: Variable 'lastslash' can be declared as pointer to const [constVariablePointer] darcs-2.18.5/src/atomic_create.c:172:15: style: Variable 's' can be declared as pointer to const [constVariablePointer] darcs-2.18.5/src/maybe_relink.c:69:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] darcs-2.18.5/src/maybe_relink.c:58:20: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] darcs-2.18.5/src/maybe_relink.c:58:31: style: Parameter 'dst' can be declared as pointer to const [constParameterPointer] darcs-2.18.5/src/umask.c:17:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] darcs-2.18.5/src/umask.c:8:17: style: Parameter 'mask_string' can be declared as pointer to const [constParameterPointer] darcs-2.18.5/src/win32/send_email.c:47:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darcs-2.18.5/src/win32/send_email.c:156:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS_SUCCESS [valueFlowBailoutIncompleteVar] darcs-2.18.5/src/win32/send_email.c:82:32: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] darcs-2.18.5/src/win32/send_email.c:79:37: note: Assuming allocation function fails darcs-2.18.5/src/win32/send_email.c:79:37: note: Assignment 'attachment_path=strdup(path)', assigned value is 0 darcs-2.18.5/src/win32/send_email.c:81:23: note: Assignment 'p=attachment_path', assigned value is 0 darcs-2.18.5/src/win32/send_email.c:82:32: note: Null pointer dereference darcs-2.18.5/src/win32/send_email.c:86:32: warning: If memory allocation fails, then there is a possible null pointer dereference: attachment_path [nullPointerOutOfMemory] darcs-2.18.5/src/win32/send_email.c:79:37: note: Assuming allocation function fails darcs-2.18.5/src/win32/send_email.c:79:37: note: Assignment 'attachment_path=strdup(path)', assigned value is 0 darcs-2.18.5/src/win32/send_email.c:86:32: note: Null pointer dereference diff: DONE