2026-05-27 20:27 ftp://ftp.de.debian.org/debian/pool/main/libp/libpam-net/libpam-net_0.4.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.8.0-117-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: 6e46c6b (2026-05-27 18:39:55 +0200) count: 13 13 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: libpam-net-0.4/pam_groupnet.c:56:2: error: #error either -DPAM_USERNET or -DPAM_GROUPNET must be defined [preprocessorErrorDirective] libpam-net-0.4/pam_net_checkgroup.c:29:22: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] libpam-net-0.4/pam_net_checkgroup.c:30:21: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] libpam-net-0.4/pam_net_checkgroup.c:49:22: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] libpam-net-0.4/pam_net_checkgroup.c:65:8: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] libpam-net-0.4/pam_net_checkgroup.c:30:16: style: Variable 'gr' can be declared as pointer to const [constVariablePointer] libpam-net-0.4/pam_net_checkgroup.c:63:16: style: Variable 'gr' can be declared as pointer to const [constVariablePointer] libpam-net-0.4/pam_newnet.c:57:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] libpam-net-0.4/pam_newnet.c:66:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] libpam-net-0.4/pam_newnet.c:94:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAM_SUCCESS [valueFlowBailoutIncompleteVar] libpam-net-0.4/pam_newnet.c:126:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAM_IGNORE [valueFlowBailoutIncompleteVar] libpam-net-0.4/pam_newnet.c:94:6: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] libpam-net-0.4/pam_newnet.c:124:40: style: Parameter 'pamh' can be declared as pointer to const [constParameterPointer] diff: DONE