2022-06-30 11:54 ftp://ftp.de.debian.org/debian/pool/main/p/python-getdns/python-getdns_1.0.0~b1.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-5.4.0-110-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 cppcheck: head 2.8 head-info: 27578e9 (2022-06-30 13:50:31 +0200) count: 40 40 elapsed-time: 1.4 1.9 head-timing-info: Tokenizer::simplifyTokens1: 1.29857s (avg. 0.259714s - 5 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 1.20252s (avg. 0.240504s - 5 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.058526s (avg. 0.0117052s - 5 result(s)) Check function usage::runChecks: 0.016366s (avg. 0.0032732s - 5 result(s)) Tokenizer::createTokens: 0.013593s (avg. 0.0027186s - 5 result(s)) Overall time: 2.63849s old-timing-info: Tokenizer::simplifyTokens1: 1.82171s (avg. 0.364343s - 5 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 1.71983s (avg. 0.343966s - 5 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.063837s (avg. 0.0127674s - 5 result(s)) Check function usage::runChecks: 0.015995s (avg. 0.003199s - 5 result(s)) Tokenizer::createTokens: 0.012343s (avg. 0.0024686s - 5 result(s)) Overall time: 3.68248s head results: getdns-python-bindings-1.0.0b1/context.c:1275:5: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] getdns-python-bindings-1.0.0b1/context.c:346:58: style: Condition '(long)(value=(uint32_t)PyInt_AsLong(py_value))<0' is always false [knownConditionTrueFalse] getdns-python-bindings-1.0.0b1/context.c:376:48: style: Condition '(long)(value=PyInt_AsLong(py_value))<0' is always false [knownConditionTrueFalse] getdns-python-bindings-1.0.0b1/context.c:407:53: style: Comparing expression of type 'unsigned char' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] getdns-python-bindings-1.0.0b1/context.c:537:53: style: Comparing expression of type 'unsigned char' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] getdns-python-bindings-1.0.0b1/context.c:568:53: style: Comparing expression of type 'unsigned char' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] getdns-python-bindings-1.0.0b1/context.c:1361:17: error: Memory leak: blob [memleak] getdns-python-bindings-1.0.0b1/context.c:1368:13: error: Memory leak: blob [memleak] getdns-python-bindings-1.0.0b1/context.c:1453:17: error: Memory leak: blob [memleak] getdns-python-bindings-1.0.0b1/context.c:1460:13: error: Memory leak: blob [memleak] getdns-python-bindings-1.0.0b1/context.c:1550:17: error: Memory leak: blob [memleak] getdns-python-bindings-1.0.0b1/context.c:1557:13: error: Memory leak: blob [memleak] getdns-python-bindings-1.0.0b1/context.c:1640:17: error: Memory leak: blob [memleak] getdns-python-bindings-1.0.0b1/context.c:1647:13: error: Memory leak: blob [memleak] getdns-python-bindings-1.0.0b1/context.c:674:17: error: Memory leak: addr_type.data [memleak] getdns-python-bindings-1.0.0b1/context.c:407:51: style: Checking if unsigned expression 'value=(uint8_t)PyInt_AsLong(py_value)' is less than zero. [unsignedLessThanZero] getdns-python-bindings-1.0.0b1/context.c:537:51: style: Checking if unsigned expression 'value=(uint8_t)PyInt_AsLong(py_value)' is less than zero. [unsignedLessThanZero] getdns-python-bindings-1.0.0b1/context.c:568:51: style: Checking if unsigned expression 'value=(uint8_t)PyInt_AsLong(py_value)' is less than zero. [unsignedLessThanZero] getdns-python-bindings-1.0.0b1/context.c:1189:64: style:inconclusive: Function 'context_setattro' argument 3 names different: declaration 'value' definition 'py_value'. [funcArgNamesDifferent] getdns-python-bindings-1.0.0b1/pygetdns.h:132:68: note: Function 'context_setattro' argument 3 names different: declaration 'value' definition 'py_value'. getdns-python-bindings-1.0.0b1/context.c:1189:64: note: Function 'context_setattro' argument 3 names different: declaration 'value' definition 'py_value'. getdns-python-bindings-1.0.0b1/context.c:1104:25: style: Local variable 'ret' shadows outer variable [shadowVariable] getdns-python-bindings-1.0.0b1/context.c:862:21: note: Shadowed declaration getdns-python-bindings-1.0.0b1/context.c:1104:25: note: Shadow variable getdns-python-bindings-1.0.0b1/context.c:1125:25: style: Local variable 'ret' shadows outer variable [shadowVariable] getdns-python-bindings-1.0.0b1/context.c:862:21: note: Shadowed declaration getdns-python-bindings-1.0.0b1/context.c:1125:25: note: Shadow variable getdns-python-bindings-1.0.0b1/context.c:1207:27: error: Uninitialized variable: &key.setter [uninitvar] getdns-python-bindings-1.0.0b1/context.c:1203:73: note: Assuming condition is false getdns-python-bindings-1.0.0b1/context.c:1207:27: note: Uninitialized variable: &key.setter getdns-python-bindings-1.0.0b1/context_util.c:73:15: style: Local variable 'py_result' shadows outer function [shadowFunction] getdns-python-bindings-1.0.0b1/pygetdns.h:114:11: note: Shadowed declaration getdns-python-bindings-1.0.0b1/context_util.c:73:15: note: Shadow variable getdns-python-bindings-1.0.0b1/getdns.c:384:11: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] getdns-python-bindings-1.0.0b1/pygetdns_util.c:119:9: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] getdns-python-bindings-1.0.0b1/pygetdns_util.c:147:9: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] getdns-python-bindings-1.0.0b1/pygetdns_util.c:424:9: error: Memory leak: addr_type.data [memleak] getdns-python-bindings-1.0.0b1/pygetdns_util.c:50:14: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] getdns-python-bindings-1.0.0b1/pygetdns_util.c:62:14: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] getdns-python-bindings-1.0.0b1/pygetdns_util.c:74:14: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] getdns-python-bindings-1.0.0b1/pygetdns_util.c:91:14: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] getdns-python-bindings-1.0.0b1/pygetdns_util.c:104:14: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] getdns-python-bindings-1.0.0b1/pygetdns_util.c:117:14: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] getdns-python-bindings-1.0.0b1/pygetdns_util.c:142:14: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] getdns-python-bindings-1.0.0b1/pygetdns_util.c:163:37: style: Variable 'optionslist' is assigned a value that is never used. [unreadVariable] getdns-python-bindings-1.0.0b1/pygetdns_util.c:487:18: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] getdns-python-bindings-1.0.0b1/pygetdns_util.c:500:18: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] getdns-python-bindings-1.0.0b1/pygetdns_util.c:513:18: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] getdns-python-bindings-1.0.0b1/pygetdns_util.c:548:22: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] getdns-python-bindings-1.0.0b1/result.c:164:5: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] diff: DONE