2025-09-13 16:15 ftp://ftp.de.debian.org/debian/pool/main/k/kwallet-pam/kwallet-pam_6.3.4.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-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: fea194b (2025-09-13 13:40:14 +0200) count: 32 32 elapsed-time: 0.1 0.3 head-timing-info: old-timing-info: head results: kwallet-pam-6.3.4/pam_darwin.c:22:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAM_SERVICE [valueFlowBailoutIncompleteVar] kwallet-pam-6.3.4/pam_kwallet.c:98:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KWALLETD_BIN_PATH [valueFlowBailoutIncompleteVar] kwallet-pam-6.3.4/pam_kwallet.c:120:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] kwallet-pam-6.3.4/pam_kwallet.c:173:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAM_CONV [valueFlowBailoutIncompleteVar] kwallet-pam-6.3.4/pam_kwallet.c:228:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAM_TTY [valueFlowBailoutIncompleteVar] kwallet-pam-6.3.4/pam_kwallet.c:242:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] kwallet-pam-6.3.4/pam_kwallet.c:359:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kwallet-pam-6.3.4/pam_kwallet.c:426:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] kwallet-pam-6.3.4/pam_kwallet.c:442:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] kwallet-pam-6.3.4/pam_kwallet.c:531:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] kwallet-pam-6.3.4/pam_kwallet.c:588:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] kwallet-pam-6.3.4/pam_kwallet.c:594:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] kwallet-pam-6.3.4/pam_kwallet.c:601:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] kwallet-pam-6.3.4/pam_kwallet.c:621:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] kwallet-pam-6.3.4/pam_kwallet.c:640:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kwallet-pam-6.3.4/pam_kwallet.c:695:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kwallet-pam-6.3.4/pam_kwallet.c:775:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kwallet-pam-6.3.4/pam_kwallet.c:262:16: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] kwallet-pam-6.3.4/pam_kwallet.c:555:16: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] kwallet-pam-6.3.4/pam_kwallet.c:78:25: style: Condition 'argumentsParsed!=-1' is always false [knownConditionTrueFalse] kwallet-pam-6.3.4/pam_kwallet.c:234:13: style: Return value 'pam_xdisplay' is always false [knownConditionTrueFalse] kwallet-pam-6.3.4/pam_kwallet.c:225:49: note: Assignment 'pam_xdisplay=NULL', assigned value is 0 kwallet-pam-6.3.4/pam_kwallet.c:234:13: note: Return value 'pam_xdisplay' is always false kwallet-pam-6.3.4/pam_kwallet.c:119:22: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: value [nullPointerOutOfMemory] kwallet-pam-6.3.4/pam_kwallet.c:456:28: note: Assuming allocation function fails kwallet-pam-6.3.4/pam_kwallet.c:456:28: note: Assignment 'fullSocket=malloc(needed)', assigned value is 0 kwallet-pam-6.3.4/pam_kwallet.c:486:40: note: Calling function 'set_env', 3rd argument 'fullSocket' value is 0 kwallet-pam-6.3.4/pam_kwallet.c:119:22: note: Null pointer dereference kwallet-pam-6.3.4/pam_kwallet.c:457:18: warning: If memory allocation fails, then there is a possible null pointer dereference: fullSocket [nullPointerOutOfMemory] kwallet-pam-6.3.4/pam_kwallet.c:456:28: note: Assuming allocation function fails kwallet-pam-6.3.4/pam_kwallet.c:456:28: note: Assignment 'fullSocket=malloc(needed)', assigned value is 0 kwallet-pam-6.3.4/pam_kwallet.c:457:18: note: Null pointer dereference kwallet-pam-6.3.4/pam_kwallet.c:477:22: warning: If memory allocation fails, then there is a possible null pointer dereference: fullSocket [nullPointerOutOfMemory] kwallet-pam-6.3.4/pam_kwallet.c:476:32: note: Assuming allocation function fails kwallet-pam-6.3.4/pam_kwallet.c:476:32: note: Assignment 'fullSocket=malloc(needed)', assigned value is 0 kwallet-pam-6.3.4/pam_kwallet.c:477:22: note: Null pointer dereference kwallet-pam-6.3.4/pam_kwallet.c:482:22: warning: If memory allocation fails, then there is a possible null pointer dereference: fullSocket [nullPointerOutOfMemory] kwallet-pam-6.3.4/pam_kwallet.c:481:32: note: Assuming allocation function fails kwallet-pam-6.3.4/pam_kwallet.c:481:32: note: Assignment 'fullSocket=malloc(needed)', assigned value is 0 kwallet-pam-6.3.4/pam_kwallet.c:482:22: note: Null pointer dereference kwallet-pam-6.3.4/pam_kwallet.c:614:25: warning: If memory allocation fails, then there is a possible null pointer dereference: slash [nullPointerOutOfMemory] kwallet-pam-6.3.4/pam_kwallet.c:658:27: note: Assuming allocation function fails kwallet-pam-6.3.4/pam_kwallet.c:658:27: note: Assignment 'dir=strdup(path)', assigned value is 0 kwallet-pam-6.3.4/pam_kwallet.c:660:16: note: Calling function 'mkpath', 1st argument 'dir' value is 0 kwallet-pam-6.3.4/pam_kwallet.c:611:13: note: Assignment 'slash=path', assigned value is 0 kwallet-pam-6.3.4/pam_kwallet.c:614:25: note: Null pointer dereference kwallet-pam-6.3.4/pam_kwallet.c:659:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dir [nullPointerOutOfMemory] kwallet-pam-6.3.4/pam_kwallet.c:658:27: note: Assuming allocation function fails kwallet-pam-6.3.4/pam_kwallet.c:658:27: note: Assignment 'dir=strdup(path)', assigned value is 0 kwallet-pam-6.3.4/pam_kwallet.c:659:9: note: Null pointer dereference kwallet-pam-6.3.4/pam_kwallet.c:659:20: warning: If memory allocation fails, then there is a possible null pointer dereference: dir [nullPointerOutOfMemory] kwallet-pam-6.3.4/pam_kwallet.c:658:27: note: Assuming allocation function fails kwallet-pam-6.3.4/pam_kwallet.c:658:27: note: Assignment 'dir=strdup(path)', assigned value is 0 kwallet-pam-6.3.4/pam_kwallet.c:659:20: note: Null pointer dereference kwallet-pam-6.3.4/pam_kwallet.c:261:20: style: Variable 'userInfo' can be declared as pointer to const [constVariablePointer] kwallet-pam-6.3.4/pam_kwallet.c:321:43: style: Parameter 'userInfo' can be declared as pointer to const [constParameterPointer] kwallet-pam-6.3.4/pam_kwallet.c:341:78: style: Parameter 'toWalletPipe' can be declared as const array [constParameter] kwallet-pam-6.3.4/pam_kwallet.c:663:15: style: Variable 'salt' can be declared as pointer to const [constVariablePointer] diff: DONE