2022-06-23 05:30 ftp://ftp.de.debian.org/debian/pool/main/libp/libpam-ldap/libpam-ldap_186.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j1 platform: Linux-4.19.0-18-amd64-x86_64-with-debian-10.12 python: 3.7.3 client-version: 1.3.24 compiler: g++ (Debian 8.3.0-6) 8.3.0 cppcheck: head 2.8 head-info: f1212e6 (2022-06-22 21:22:04 +0200) count: 11 11 elapsed-time: 68.2 87.9 head-timing-info: Tokenizer::simplifyTokens1: 68.0393s (avg. 34.0196s - 2 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 67.8047s (avg. 33.9024s - 2 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.157337s (avg. 0.0786685s - 2 result(s)) Tokenizer::createTokens: 0.031384s (avg. 0.015692s - 2 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.030133s (avg. 0.0150665s - 2 result(s)) Overall time: 136.17s old-timing-info: Tokenizer::simplifyTokens1: 87.7439s (avg. 43.8719s - 2 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 87.507s (avg. 43.7535s - 2 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.159863s (avg. 0.0799315s - 2 result(s)) Tokenizer::createTokens: 0.031058s (avg. 0.015529s - 2 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.029707s (avg. 0.0148535s - 2 result(s)) Overall time: 175.574s head results: pam_ldap-186/pam_ldap.c:605:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] pam_ldap-186/pam_ldap.c:2537:7: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] pam_ldap-186/pam_ldap.c:3133:47: portability: Non reentrant function 'crypt' called. For threadsafe applications it is recommended to use the reentrant replacement function 'crypt_r'. [prohibitedcryptCalled] pam_ldap-186/pam_ldap.c:3148:47: portability: Non reentrant function 'crypt' called. For threadsafe applications it is recommended to use the reentrant replacement function 'crypt_r'. [prohibitedcryptCalled] pam_ldap-186/pam_ldap.c:2544:9: warning: Identical condition 'h==NULL', second condition is always false [identicalConditionAfterEarlyExit] pam_ldap-186/pam_ldap.c:2538:9: note: If condition 'h==NULL' is true, the function will return/exit pam_ldap-186/pam_ldap.c:2544:9: note: Testing identical condition 'h==NULL' pam_ldap-186/pam_ldap.c:394:34: style:inconclusive: Function 'ldap_set_lderrno' argument 2 names different: declaration 'e' definition 'lderrno'. [funcArgNamesDifferent] pam_ldap-186/pam_ldap.c:198:45: note: Function 'ldap_set_lderrno' argument 2 names different: declaration 'e' definition 'lderrno'. pam_ldap-186/pam_ldap.c:394:34: note: Function 'ldap_set_lderrno' argument 2 names different: declaration 'e' definition 'lderrno'. pam_ldap-186/pam_ldap.c:2002:34: style:inconclusive: Function '_connect_as_user' argument 1 names different: declaration 'handle' definition 'pamh'. [funcArgNamesDifferent] pam_ldap-186/pam_ldap.c:249:44: note: Function '_connect_as_user' argument 1 names different: declaration 'handle' definition 'pamh'. pam_ldap-186/pam_ldap.c:2002:34: note: Function '_connect_as_user' argument 1 names different: declaration 'handle' definition 'pamh'. pam_ldap-186/pam_ldap.c:2457:29: style:inconclusive: Function '_service_ok' argument 1 names different: declaration 'handle' definition 'pamh'. [funcArgNamesDifferent] pam_ldap-186/pam_ldap.c:263:40: note: Function '_service_ok' argument 1 names different: declaration 'handle' definition 'pamh'. pam_ldap-186/pam_ldap.c:2457:29: note: Function '_service_ok' argument 1 names different: declaration 'handle' definition 'pamh'. pam_ldap-186/pam_ldap.c:2587:60: warning: Using 'sizeof' on array given as function argument returns size of a pointer. [sizeofwithsilentarraypointer] pam_ldap-186/pam_ldap.c:3348:14: style: Variable 'msg[0].msg' is assigned a value that is never used. [unreadVariable] pam_ldap-186/pam_ldap.c:3354:10: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] diff: DONE