2025-05-05 23:57 ftp://ftp.de.debian.org/debian/pool/main/libs/libsocket6-perl/libsocket6-perl_0.29.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 581f101 (2025-05-05 21:13:30 +0200) count: 15 15 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: Socket6-0.29/inet_ntop.c:62:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Socket6-0.29/inet_ntop.c:87:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Socket6-0.29/getnameinfo.c:56:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in_addr [valueFlowBailoutIncompleteVar] Socket6-0.29/getnameinfo.c:55:11: style: Obsolescent function 'gethostbyaddr' called. It is recommended to use 'getnameinfo' instead. [prohibitedgethostbyaddrCalled] Socket6-0.29/getnameinfo.c:33:25: style: Variable 'sin' can be declared as pointer to const [constVariablePointer] Socket6-0.29/getnameinfo.c:34:21: style: Variable 'hp' can be declared as pointer to const [constVariablePointer] Socket6-0.29/getaddrinfo.c:31:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] Socket6-0.29/getaddrinfo.c:90:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_UNSPEC [valueFlowBailoutIncompleteVar] Socket6-0.29/inet_pton.c:56:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Socket6-0.29/inet_pton.c:108:21: error: Uninitialized variable: tmp [uninitvar] Socket6-0.29/inet_pton.c:106:20: note: Assuming condition is false Socket6-0.29/inet_pton.c:108:21: note: Uninitialized variable: tmp Socket6-0.29/getaddrinfo.c:130:16: portability: Non reentrant function 'getservbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyname_r'. [prohibitedgetservbynameCalled] Socket6-0.29/getaddrinfo.c:154:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] Socket6-0.29/getaddrinfo.c:86:21: style: Variable 'hp' can be declared as pointer to const [constVariablePointer] Socket6-0.29/getaddrinfo.c:114:22: style: Variable 'se' can be declared as pointer to const [constVariablePointer] Socket6-0.29/getaddrinfo.c:115:12: style: Variable 'pe_proto' can be declared as pointer to const [constVariablePointer] diff: DONE