2025-09-15 21:37 ftp://ftp.de.debian.org/debian/pool/main/r/rdate/rdate_1.11.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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-6.12.43+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 3e169d6 (2025-09-15 13:38:15 +0200) count: 16 16 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: openrdate-1.11/src/rfc868time.c:80:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] openrdate-1.11/src/ntpleaps.c:78:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] openrdate-1.11/src/ntpleaps.c:130:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] openrdate-1.11/src/rdate.c:78:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] openrdate-1.11/src/rdate.c:102:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_UNSPEC [valueFlowBailoutIncompleteVar] openrdate-1.11/src/rfc868time.c:113:17: error: Null pointer dereference [nullPointer] openrdate-1.11/src/ntp.c:142:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_DGRAM [valueFlowBailoutIncompleteVar] openrdate-1.11/src/ntp.c:211:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] openrdate-1.11/src/ntp.c:334:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NFDBITS [valueFlowBailoutIncompleteVar] openrdate-1.11/src/ntp.c:491:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] openrdate-1.11/src/rdate.c:220:15: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] openrdate-1.11/src/ntpleaps.c:111:24: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] openrdate-1.11/src/rdate.c:99:21: style: Variable 'hname' can be declared as pointer to const [constVariablePointer] openrdate-1.11/src/rdate.c:215:25: style: Variable 'ltm' can be declared as pointer to const [constVariablePointer] openrdate-1.11/src/ntp.c:424:43: style: Parameter 'packet' can be declared as pointer to const [constParameterPointer] openrdate-1.11/src/ntp.c:153:7: style: Variable 's' is assigned a value that is never used. [unreadVariable] diff: DONE