2026-05-05 21:43 ftp://ftp.de.debian.org/debian/pool/main/x/xcwd/xcwd_0~2.gbpe2c777c.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --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: 6278f6b (2026-05-05 15:01:04 +0200) count: 14 14 elapsed-time: 0.2 0.1 head-timing-info: old-timing-info: head results: xcwd-0~2.gbpe2c777c/xcwd.c:75:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] xcwd-0~2.gbpe2c777c/xcwd.c:110:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xcwd-0~2.gbpe2c777c/xcwd.c:127:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AnyPropertyType [valueFlowBailoutIncompleteVar] xcwd-0~2.gbpe2c777c/xcwd.c:271:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc_s [valueFlowBailoutIncompleteVar] xcwd-0~2.gbpe2c777c/xcwd.c:289:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xcwd-0~2.gbpe2c777c/xcwd.c:303:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] xcwd-0~2.gbpe2c777c/xcwd.c:279:20: style: Condition 'readPath(lastRes-i)' is always true [knownConditionTrueFalse] xcwd-0~2.gbpe2c777c/xcwd.c:279:20: note: Calling function 'readPath' returns 1 xcwd-0~2.gbpe2c777c/xcwd.c:279:20: note: Condition 'readPath(lastRes-i)' is always true xcwd-0~2.gbpe2c777c/xcwd.c:282:20: style: Condition 'readPath(lastRes+i)' is always true [knownConditionTrueFalse] xcwd-0~2.gbpe2c777c/xcwd.c:282:20: note: Calling function 'readPath' returns 1 xcwd-0~2.gbpe2c777c/xcwd.c:282:20: note: Condition 'readPath(lastRes+i)' is always true xcwd-0~2.gbpe2c777c/xcwd.c:308:8: style: Condition '!p' is always true [knownConditionTrueFalse] xcwd-0~2.gbpe2c777c/xcwd.c:155:21: note: Assignment 'p=NULL', assigned value is 0 xcwd-0~2.gbpe2c777c/xcwd.c:307:21: note: Calling function 'getProcesses' returns 0 xcwd-0~2.gbpe2c777c/xcwd.c:307:21: note: Assignment 'p=getProcesses()', assigned value is 0 xcwd-0~2.gbpe2c777c/xcwd.c:308:8: note: Condition '!p' is always true xcwd-0~2.gbpe2c777c/xcwd.c:110:9: warning: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'signed long'. [invalidPrintfArgType_uint] xcwd-0~2.gbpe2c777c/xcwd.c:135:21: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] xcwd-0~2.gbpe2c777c/xcwd.c:131:29: note: Assuming allocation function fails xcwd-0~2.gbpe2c777c/xcwd.c:131:29: note: Assignment 'ret=malloc(sizeof(char)**size)', assigned value is 0 xcwd-0~2.gbpe2c777c/xcwd.c:135:21: note: Null pointer dereference xcwd-0~2.gbpe2c777c/xcwd.c:228:36: style: Parameter 'proc' can be declared as pointer to const [constParameterPointer] xcwd-0~2.gbpe2c777c/xcwd.c:316:24: style: Variable 'res' can be declared as pointer to const [constVariablePointer] xcwd-0~2.gbpe2c777c/xcwd.c:323:44: error: Uninitialized variable: &key [uninitvar] diff: DONE