2025-07-15 21:57 ftp://ftp.de.debian.org/debian/pool/main/s/sgp4/sgp4_2.22.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=python --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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: b62f571 (2025-07-15 18:23:53 +0200) count: 252 252 elapsed-time: 3.4 3.6 head-timing-info: old-timing-info: head results: sgp4-2.22/extension/wrapper.cpp:42:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyBUF_SIMPLE [valueFlowBailoutIncompleteVar] sgp4-2.22/extension/wrapper.cpp:138:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_NUMERIC [valueFlowBailoutIncompleteVar] sgp4-2.22/extension/wrapper.cpp:195:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] sgp4-2.22/extension/wrapper.cpp:252:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] sgp4-2.22/extension/wrapper.cpp:268:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] sgp4-2.22/extension/wrapper.cpp:533:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] sgp4-2.22/extension/wrapper.cpp:581:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_TPFLAGS_DEFAULT [valueFlowBailoutIncompleteVar] sgp4-2.22/extension/wrapper.cpp:208:16: warning: Buffer 'satnum_str' is too small, the function 'sgp4init' expects a bigger buffer in 3rd argument [argumentSize] sgp4-2.22/extension/wrapper.cpp:208:16: note: Function 'sgp4init' is called sgp4-2.22/extension/SGP4.h:124:54: note: Declaration of 3rd function argument. sgp4-2.22/extension/wrapper.cpp:179:10: note: Passing buffer 'satnum_str' to function that is declared here sgp4-2.22/extension/wrapper.cpp:208:16: note: Buffer 'satnum_str' is too small, the function 'sgp4init' expects a bigger buffer in 3rd argument sgp4-2.22/extension/wrapper.cpp:65:22: style: C-style pointer casting [cstyleCast] sgp4-2.22/extension/wrapper.cpp:66:22: style: C-style pointer casting [cstyleCast] sgp4-2.22/extension/wrapper.cpp:67:21: style: C-style pointer casting [cstyleCast] sgp4-2.22/extension/wrapper.cpp:68:21: style: C-style pointer casting [cstyleCast] sgp4-2.22/extension/wrapper.cpp:69:22: style: C-style pointer casting [cstyleCast] sgp4-2.22/extension/wrapper.cpp:124:26: style: C-style pointer casting [cstyleCast] sgp4-2.22/extension/wrapper.cpp:532:40: style: C-style pointer casting [cstyleCast] sgp4-2.22/extension/wrapper.cpp:609:41: style: C-style pointer casting [cstyleCast] sgp4-2.22/extension/wrapper.cpp:616:46: style: C-style pointer casting [cstyleCast] sgp4-2.22/extension/wrapper.cpp:173:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sgp4-2.22/extension/wrapper.cpp:206:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sgp4-2.22/extension/wrapper.cpp:249:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sgp4-2.22/extension/wrapper.cpp:263:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sgp4-2.22/extension/wrapper.cpp:276:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sgp4-2.22/extension/wrapper.cpp:495:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sgp4-2.22/extension/wrapper.cpp:538:28: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sgp4-2.22/extension/wrapper.cpp:547:39: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sgp4-2.22/extension/wrapper.cpp:136:11: style: Variable 'old_locale' can be declared as pointer to const [constVariablePointer] sgp4-2.22/extension/wrapper.cpp:439:38: style: Parameter 'closure' can be declared as pointer to const. However it seems that 'get_satnum' is a callback function, if 'closure' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sgp4-2.22/extension/wrapper.cpp:477:24: note: You might need to cast the function pointer here sgp4-2.22/extension/wrapper.cpp:439:38: note: Parameter 'closure' can be declared as pointer to const sgp4-2.22/extension/wrapper.cpp:441:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] sgp4-2.22/extension/SGP4.cpp:2125:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sgp4-2.22/extension/SGP4.cpp:2351:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] sgp4-2.22/extension/SGP4.cpp:2894:24: style:inconclusive: Boolean expression 'incl