2026-05-01 19:15 ftp://ftp.de.debian.org/debian/pool/main/e/extrace/extrace_0.7.orig.tar.xz 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.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 19 19 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: extrace-0.7/extrace.c:118:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_DIRECTORY [valueFlowBailoutIncompleteVar] extrace-0.7/extrace.c:125:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] extrace-0.7/extrace.c:266:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] extrace-0.7/extrace.c:294:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] extrace-0.7/extrace.c:452:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] extrace-0.7/extrace.c:475:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cn_msg [valueFlowBailoutIncompleteVar] extrace-0.7/extrace.c:378:13: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] extrace-0.7/extrace.c:135:3: error: Resource leak: fd [resourceLeak] extrace-0.7/extrace.c:127:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] extrace-0.7/extrace.c:296:8: style: Variable 'argvrest' can be declared as pointer to const [constVariablePointer] extrace-0.7/extrace.c:374:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] extrace-0.7/extrace.c:447:17: style: Parameter 's' can be declared as pointer to const [constParameterPointer] extrace-0.7/extrace.c:477:26: style: Variable 'cmsg' can be declared as pointer to const [constVariablePointer] extrace-0.7/extrace.c:478:21: style: Variable 'cproc' can be declared as pointer to const [constVariablePointer] extrace-0.7/extrace.c:268:23: style: Variable 'eq' is assigned a value that is never used. [unreadVariable] extrace-0.7/extrace.c:298:16: style: Variable 'r2' is assigned a value that is never used. [unreadVariable] extrace-0.7/extrace.c:298:24: style: Variable 'r3' is assigned a value that is never used. [unreadVariable] extrace-0.7/pwait.c:142:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cn_msg [valueFlowBailoutIncompleteVar] extrace-0.7/pwait.c:281:11: style: Local variable 'pid' shadows outer variable [shadowVariable] extrace-0.7/pwait.c:151:8: note: Shadowed declaration extrace-0.7/pwait.c:281:11: note: Shadow variable diff: DONE