2022-06-24 14:00 ftp://ftp.de.debian.org/debian/pool/main/p/proxychains-ng/proxychains-ng_4.16.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j4 platform: Linux-5.10.0-15-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.25 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.8 head-info: 11860cc (2022-06-24 13:55:04 +0200) count: 40 40 elapsed-time: 2.8 4.0 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: proxychains-ng-4.16/src/daemon/hsearch.c:87:30: style: Variable 'j' is assigned a value that is never used. [unreadVariable] proxychains-ng-4.16/src/daemon/hsearch.c:103:25: style: Variable 'j' is assigned a value that is never used. [unreadVariable] proxychains-ng-4.16/src/rdns.c:72:42: style: Parameter 'addr' can be declared as pointer to const [constParameter] proxychains-ng-4.16/tests/test_getaddrinfo.c:74:6: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] proxychains-ng-4.16/tests/test_getaddrinfo.c:73:6: note: ret is assigned proxychains-ng-4.16/tests/test_getaddrinfo.c:74:6: note: ret is overwritten proxychains-ng-4.16/tests/test_getaddrinfo.c:79:6: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] proxychains-ng-4.16/tests/test_getaddrinfo.c:74:6: note: ret is assigned proxychains-ng-4.16/tests/test_getaddrinfo.c:79:6: note: ret is overwritten proxychains-ng-4.16/tests/test_gethostbyname.c:20:8: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] proxychains-ng-4.16/tests/test_gethostent.c:20:14: portability: Non reentrant function 'gethostent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gethostent_r'. [prohibitedgethostentCalled] proxychains-ng-4.16/src/core.c:631:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] proxychains-ng-4.16/src/core.c:784:13: portability: Non reentrant function 'gethostent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gethostent_r'. [prohibitedgethostentCalled] proxychains-ng-4.16/src/core.c:918:8: portability: Non reentrant function 'getservbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyname_r'. [prohibitedgetservbynameCalled] proxychains-ng-4.16/src/core.c:993:12: style: Condition '!node' is always true [knownConditionTrueFalse] proxychains-ng-4.16/src/core.c:991:12: note: Assuming that condition 'node' is not redundant proxychains-ng-4.16/src/core.c:993:12: note: Condition '!node' is always true proxychains-ng-4.16/tests/test_v4_in_v6.c:36:12: style: Variable 'error' is assigned a value that is never used. [unreadVariable] proxychains-ng-4.16/tests/test_v4_in_v6.c:17:19: style: Unused variable: res [unusedVariable] proxychains-ng-4.16/tests/test_sendto.c:38:11: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] proxychains-ng-4.16/src/core.c:52:19: style: Variable 'time_elapsed' is assigned a value that is never used. [unreadVariable] proxychains-ng-4.16/src/core.c:122:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] proxychains-ng-4.16/tests/test_sendto.c:41:3: error: Resource leak: sockfd [resourceLeak] proxychains-ng-4.16/tests/test_sendto.c:55:4: error: Resource leak: sockfd [resourceLeak] proxychains-ng-4.16/src/libproxychains.c:642:6: style: The if condition is the same as the previous if condition [duplicateCondition] proxychains-ng-4.16/src/libproxychains.c:637:6: note: First condition proxychains-ng-4.16/src/libproxychains.c:642:6: note: Second condition proxychains-ng-4.16/src/libproxychains.c:391:9: warning:inconclusive: Width 53 given in format string (no. 2) is smaller than destination buffer 'local_addr_port[64]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.16/src/libproxychains.c:391:9: warning:inconclusive: Width 15 given in format string (no. 3) is smaller than destination buffer 'local_netmask[32]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.16/src/libproxychains.c:398:11: warning:inconclusive: Width 15 given in format string (no. 1) is smaller than destination buffer 'local_addr[64]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.16/src/libproxychains.c:402:11: warning:inconclusive: Width 45 given in format string (no. 1) is smaller than destination buffer 'local_addr[64]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.16/src/libproxychains.c:406:15: warning:inconclusive: Width 45 given in format string (no. 1) is smaller than destination buffer 'local_addr[64]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.16/src/libproxychains.c:481:9: warning:inconclusive: Width 15 given in format string (no. 2) is smaller than destination buffer 'rdnsd_addr[32]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.16/src/libproxychains.c:481:9: warning:inconclusive: Width 5 given in format string (no. 3) is smaller than destination buffer 'rdnsd_port[8]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.16/src/libproxychains.c:495:9: warning:inconclusive: Width 21 given in format string (no. 2) is smaller than destination buffer 'dnat_orig_addr_port[32]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.16/src/libproxychains.c:495:9: warning:inconclusive: Width 21 given in format string (no. 3) is smaller than destination buffer 'dnat_new_addr_port[32]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.16/src/libproxychains.c:503:12: warning:inconclusive: Width 15 given in format string (no. 1) is smaller than destination buffer 'dnat_orig_addr[32]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.16/src/libproxychains.c:503:12: warning:inconclusive: Width 5 given in format string (no. 2) is smaller than destination buffer 'dnat_orig_port[32]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.16/src/libproxychains.c:504:12: warning:inconclusive: Width 15 given in format string (no. 1) is smaller than destination buffer 'dnat_new_addr[32]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.16/src/libproxychains.c:504:12: warning:inconclusive: Width 5 given in format string (no. 2) is smaller than destination buffer 'dnat_new_port[32]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.16/src/libproxychains.c:321:15: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] proxychains-ng-4.16/src/libproxychains.c:377:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] proxychains-ng-4.16/src/libproxychains.c:379:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] proxychains-ng-4.16/src/libproxychains.c:381:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] proxychains-ng-4.16/src/libproxychains.c:391:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] proxychains-ng-4.16/src/libproxychains.c:481:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] proxychains-ng-4.16/src/libproxychains.c:495:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] proxychains-ng-4.16/src/libproxychains.c:89:44: style: Parameter 'proxyfunc' can be declared as pointer to const [constParameter] diff: head proxychains-ng-4.16/src/libproxychains.c:89:44: style: Parameter 'proxyfunc' can be declared as pointer to const [constParameter] 2.8 proxychains-ng-4.16/src/libproxychains.c:89:44: style: Parameter 'proxyfunc' can be declared with const [constParameter] head proxychains-ng-4.16/src/rdns.c:72:42: style: Parameter 'addr' can be declared as pointer to const [constParameter] 2.8 proxychains-ng-4.16/src/rdns.c:72:42: style: Parameter 'addr' can be declared with const [constParameter] DONE