2022-06-27 23:56 ftp://ftp.de.debian.org/debian/pool/main/g/geoip/geoip_1.6.12.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 -j2 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: cdeebc1 (2022-06-27 20:55:09 +0200) count: 55 TO! elapsed-time: 1793.7 1800.1 head-timing-info: Overall time: 0s old-timing-info: head results: geoip-api-c-1.6.12/apps/geoiplookup.c:225:5: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] geoip-api-c-1.6.12/libGeoIP/GeoIPCity.c:261:58: style:inconclusive: Function 'GeoIP_record_by_name' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIPCity.h:53:68: note: Function 'GeoIP_record_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIPCity.c:261:58: note: Function 'GeoIP_record_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIPCity.c:270:61: style:inconclusive: Function 'GeoIP_record_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIPCity.h:57:71: note: Function 'GeoIP_record_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIPCity.c:270:61: note: Function 'GeoIP_record_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIPCity.c:66:20: style: Variable 'bytes_read' is assigned a value that is never used. [unreadVariable] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1838:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2106:20: warning: Either the condition 'gi==NULL' is redundant or there is possible null pointer dereference: gi. [nullPointerRedundantCheck] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2109:12: note: Assuming that condition 'gi==NULL' is not redundant geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2106:20: note: Null pointer dereference geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1840:28: style: The comparison 'result != 0' is always false. [knownConditionTrueFalse] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1812:18: note: 'result' is assigned value '0' here. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1840:28: note: The comparison 'result != 0' is always false. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1761:57: style:inconclusive: Function 'GeoIP_country_code_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:236:57: note: Function 'GeoIP_country_code_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1761:57: note: Function 'GeoIP_country_code_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1768:54: style:inconclusive: Function 'GeoIP_country_code_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:208:54: note: Function 'GeoIP_country_code_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1768:54: note: Function 'GeoIP_country_code_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1775:59: style:inconclusive: Function 'GeoIP_country_code3_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:240:58: note: Function 'GeoIP_country_code3_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1775:59: note: Function 'GeoIP_country_code3_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1783:55: style:inconclusive: Function 'GeoIP_country_code3_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:212:55: note: Function 'GeoIP_country_code3_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1783:55: note: Function 'GeoIP_country_code3_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1790:57: style:inconclusive: Function 'GeoIP_country_name_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:244:57: note: Function 'GeoIP_country_name_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1790:57: note: Function 'GeoIP_country_name_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1797:54: style:inconclusive: Function 'GeoIP_country_name_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:216:54: note: Function 'GeoIP_country_name_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1797:54: note: Function 'GeoIP_country_name_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1880:48: style:inconclusive: Function 'GeoIP_id_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:247:58: note: Function 'GeoIP_id_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1880:48: note: Function 'GeoIP_id_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1902:51: style:inconclusive: Function 'GeoIP_id_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:254:47: note: Function 'GeoIP_id_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1902:51: note: Function 'GeoIP_id_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2173:54: style:inconclusive: Function 'GeoIP_assign_region_by_inetaddr_gl' argument 3 names different: declaration 'gir' definition 'region'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:277:64: note: Function 'GeoIP_assign_region_by_inetaddr_gl' argument 3 names different: declaration 'gir' definition 'region'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2173:54: note: Function 'GeoIP_assign_region_by_inetaddr_gl' argument 3 names different: declaration 'gir' definition 'region'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2229:57: style:inconclusive: Function 'GeoIP_assign_region_by_inetaddr_v6_gl' argument 3 names different: declaration 'gir' definition 'region'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:281:67: note: Function 'GeoIP_assign_region_by_inetaddr_v6_gl' argument 3 names different: declaration 'gir' definition 'region'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2229:57: note: Function 'GeoIP_assign_region_by_inetaddr_v6_gl' argument 3 names different: declaration 'gir' definition 'region'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2341:48: style:inconclusive: Function 'GeoIP_region_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:261:48: note: Function 'GeoIP_region_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2341:48: note: Function 'GeoIP_region_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2360:51: style:inconclusive: Function 'GeoIP_region_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:268:51: note: Function 'GeoIP_region_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2360:51: note: Function 'GeoIP_region_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2637:52: style:inconclusive: Function 'GeoIP_name_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:290:46: note: Function 'GeoIP_name_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2637:52: note: Function 'GeoIP_name_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1493:24: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1493:24: error: Signed integer overflow for expression '1<