2025-11-21 02:50 ftp://ftp.de.debian.org/debian/pool/main/e/erlang-p1-pam/erlang-p1-pam_1.0.14.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 -j4 platform: Linux-5.4.0-216-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.69 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 cppcheck: head 2.18.0 head-info: 5374cd3 (2025-11-20 15:35:39 +0100) count: 9 9 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: epam-1.0.14/c_src/epam.c:60:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAM_CONV_ERR [valueFlowBailoutIncompleteVar] epam-1.0.14/c_src/epam.c:76:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAM_SUCCESS [valueFlowBailoutIncompleteVar] epam-1.0.14/c_src/epam.c:98:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAM_SUCCESS [valueFlowBailoutIncompleteVar] epam-1.0.14/c_src/epam.c:119:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] epam-1.0.14/c_src/epam.c:156:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] epam-1.0.14/c_src/epam.c:181:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAM_SUCCESS [valueFlowBailoutIncompleteVar] epam-1.0.14/c_src/epam.c:65:4: warning: If memory allocation fails, then there is a possible null pointer dereference: *resp [nullPointerOutOfMemory] epam-1.0.14/c_src/epam.c:64:17: note: Assuming allocation function fails epam-1.0.14/c_src/epam.c:64:17: note: Assignment '*resp=malloc(sizeof(struct pam_response))', assigned value is 0 epam-1.0.14/c_src/epam.c:65:4: note: Null pointer dereference epam-1.0.14/c_src/epam.c:56:28: style: Parameter 'password' can be declared as pointer to const. However it seems that 'misc_conv' is a callback function, if 'password' is declared with const you might also need to cast function pointer(s). [constParameterCallback] epam-1.0.14/c_src/epam.c:94:27: note: You might need to cast the function pointer here epam-1.0.14/c_src/epam.c:56:28: note: Parameter 'password' can be declared as pointer to const epam-1.0.14/c_src/epam.c:247:26: style: Parameter 'argv' can be declared as const array [constParameter] diff: DONE