2024-04-21 08:12 ftp://ftp.de.debian.org/debian/pool/main/p/proxychains-ng/proxychains-ng_4.17.orig.tar.gz cppcheck-options: --library=posix --library=gnu --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 -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.56 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.14.0 head-info: ebf4cc2 (2024-04-21 09:34:26 +0200) count: 129 129 elapsed-time: 11.3 11.4 head-timing-info: old-timing-info: head results: proxychains-ng-4.17/src/allocator_thread.c:70:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable as_int [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/allocator_thread.c:108:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable as_int [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/allocator_thread.c:160:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/allocator_thread.c:180:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/allocator_thread.c:206:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/allocator_thread.c:273:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable msgtype [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/allocator_thread.c:287:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable msgtype [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/allocator_thread.c:334:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROT_WRITE [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/allocator_thread.c:38:31: style: Parameter 's' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/src/allocator_thread.c:192:14: style: Variable 'destfd' can be declared as const array [constVariable] proxychains-ng-4.17/src/allocator_thread.c:223:14: style: Variable 'readfd' can be declared as const array [constVariable] proxychains-ng-4.17/src/allocator_thread.c:246:11: style: Variable 'host' can be declared as pointer to const [constVariablePointer] proxychains-ng-4.17/src/allocator_thread.c:269:35: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/src/common.c:77:29: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/src/core.c:66:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/core.c:116:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/core.c:139:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/core.c:156:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/core.c:221:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET6_ADDRSTRLEN [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/core.c:439:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET6_ADDRSTRLEN [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/core.c:529:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET6_ADDRSTRLEN [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/core.c:727:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/core.c:838:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in_addr [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/core.c:865:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/core.c:930:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/core.c:955:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/core.c:971:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/core.c:636:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] proxychains-ng-4.17/src/core.c:789: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.17/src/core.c:923: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.17/src/core.c:999:12: style: Condition '!node' is always true [knownConditionTrueFalse] proxychains-ng-4.17/src/core.c:997:12: note: Assuming that condition 'node' is not redundant proxychains-ng-4.17/src/core.c:999:12: note: Condition '!node' is always true proxychains-ng-4.17/src/core.c:121:40: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/src/core.c:192:86: style: Parameter 'user' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/src/core.c:192:98: style: Parameter 'pass' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/src/core.c:193:8: style: Variable 'dns_name' can be declared as pointer to const [constVariablePointer] proxychains-ng-4.17/src/core.c:751:81: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/src/core.c:919:18: style: Variable 'res' can be declared as pointer to const [constVariablePointer] proxychains-ng-4.17/src/core.c:967:18: style: Variable 'hp' can be declared as pointer to const [constVariablePointer] proxychains-ng-4.17/src/core.c:52:19: style: Variable 'time_elapsed' is assigned a value that is never used. [unreadVariable] proxychains-ng-4.17/src/core.c:122:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] proxychains-ng-4.17/src/daemon/daemon.c:75:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/daemon/daemon.c:116:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable as_int [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/daemon/daemon.c:128:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable as_int [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/daemon/daemon.c:149:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/daemon/daemon.c:75:8: style: Variable 'ipdata' can be declared as pointer to const [constVariablePointer] proxychains-ng-4.17/src/daemon/daemon.c:125:14: style: Variable 'v' can be declared as pointer to const [constVariablePointer] proxychains-ng-4.17/src/daemon/hsearch.c:72:15: style: Variable 'oldend' can be declared as pointer to const [constVariablePointer] proxychains-ng-4.17/src/daemon/hsearch.c:98:41: style: Parameter 'htab' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/src/daemon/hsearch.c:98:53: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/src/daemon/hsearch.c:176:31: style: Parameter 'htab' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/src/daemon/hsearch.c:87:30: style: Variable 'j' is assigned a value that is never used. [unreadVariable] proxychains-ng-4.17/src/daemon/hsearch.c:103:25: style: Variable 'j' is assigned a value that is never used. [unreadVariable] proxychains-ng-4.17/src/daemon/sblist.c:43:38: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/src/daemon/sblist.c:52:33: style: Parameter 'item' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/src/daemon/udpclient.c:15:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/daemon/udpclient.c:14:7: style: Variable 'srvn' can be declared as const array [constVariable] proxychains-ng-4.17/src/daemon/udpserver.c:8:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/daemon/udpserver.c:20:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/daemon/udpserver.c:28:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/daemon/udpserver.c:50:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_DGRAM [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/daemon/udpserver.c:34:38: style: Parameter 'server' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/src/hostsreader.c:85:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable as_int [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/libproxychains.c:91:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/libproxychains.c:338:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/libproxychains.c:588:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/libproxychains.c:620:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/libproxychains.c:670:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/libproxychains.c:777:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/libproxychains.c:791:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/libproxychains.c:801:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/libproxychains.c:814:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/libproxychains.c:855:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/libproxychains.c:892:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/libproxychains.c:721:6: style: The if condition is the same as the previous if condition [duplicateCondition] proxychains-ng-4.17/src/libproxychains.c:716:6: note: First condition proxychains-ng-4.17/src/libproxychains.c:721:6: note: Second condition proxychains-ng-4.17/src/libproxychains.c:407: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.17/src/libproxychains.c:407:9: warning:inconclusive: Width 15 given in format string (no. 3) is smaller than destination buffer 'local_netmask[32]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.17/src/libproxychains.c:414:11: warning:inconclusive: Width 15 given in format string (no. 1) is smaller than destination buffer 'local_addr[64]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.17/src/libproxychains.c:418:11: warning:inconclusive: Width 45 given in format string (no. 1) is smaller than destination buffer 'local_addr[64]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.17/src/libproxychains.c:422:15: warning:inconclusive: Width 45 given in format string (no. 1) is smaller than destination buffer 'local_addr[64]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.17/src/libproxychains.c:497:9: warning:inconclusive: Width 15 given in format string (no. 2) is smaller than destination buffer 'rdnsd_addr[32]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.17/src/libproxychains.c:497:9: warning:inconclusive: Width 5 given in format string (no. 3) is smaller than destination buffer 'rdnsd_port[8]'. [invalidScanfFormatWidth_smaller] proxychains-ng-4.17/src/libproxychains.c:511: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.17/src/libproxychains.c:511: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.17/src/libproxychains.c:519: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.17/src/libproxychains.c:519: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.17/src/libproxychains.c:520: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.17/src/libproxychains.c:520: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.17/src/libproxychains.c:337:15: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] proxychains-ng-4.17/src/libproxychains.c:393:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] proxychains-ng-4.17/src/libproxychains.c:395:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] proxychains-ng-4.17/src/libproxychains.c:397:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] proxychains-ng-4.17/src/libproxychains.c:407:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] proxychains-ng-4.17/src/libproxychains.c:497:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] proxychains-ng-4.17/src/libproxychains.c:511:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] proxychains-ng-4.17/src/libproxychains.c:90:29: style: Parameter 'symname' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/src/libproxychains.c:90:44: style: Parameter 'proxyfunc' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/src/libproxychains.c:136:8: style: Variable 'env' can be declared as pointer to const [constVariablePointer] proxychains-ng-4.17/src/libproxychains.c:292:15: style: Variable 'env' can be declared as pointer to const [constVariablePointer] proxychains-ng-4.17/src/libproxychains.c:479:12: style: Variable 'pc' can be declared as pointer to const [constVariablePointer] proxychains-ng-4.17/src/libproxychains.c:678:18: style: Variable 'p_addr_in' can be declared as pointer to const [constVariablePointer] proxychains-ng-4.17/src/libproxychains.c:679:19: style: Variable 'p_addr_in6' can be declared as pointer to const [constVariablePointer] proxychains-ng-4.17/src/main.c:105:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/main.c:153:8: style: Variable 'old_val' can be declared as pointer to const [constVariablePointer] proxychains-ng-4.17/src/rdns.c:20:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable msgtype [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/rdns.c:36:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable msgtype [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/src/rdns.c:34:51: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/src/rdns.c:72:42: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/tests/test_getaddrinfo.c:22:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/tests/test_getaddrinfo.c:55:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_NUMERICHOST [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/tests/test_getaddrinfo.c:75:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_INET [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/tests/test_getaddrinfo.c:74:6: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] proxychains-ng-4.17/tests/test_getaddrinfo.c:73:6: note: ret is assigned proxychains-ng-4.17/tests/test_getaddrinfo.c:74:6: note: ret is overwritten proxychains-ng-4.17/tests/test_getaddrinfo.c:79:6: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] proxychains-ng-4.17/tests/test_getaddrinfo.c:74:6: note: ret is assigned proxychains-ng-4.17/tests/test_getaddrinfo.c:79:6: note: ret is overwritten proxychains-ng-4.17/tests/test_getaddrinfo.c:49:51: style: Parameter 'ss' can be declared as pointer to const [constParameterPointer] proxychains-ng-4.17/tests/test_gethostbyname.c:20:8: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] proxychains-ng-4.17/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.17/tests/test_gethostent_r.c:49:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/tests/test_getnameinfo.c:19:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_MAXHOST [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/tests/test_getnameinfo.c:18:31: style: Variable 'sa' can be declared as pointer to const [constVariablePointer] proxychains-ng-4.17/tests/test_getnameinfo.c:100:32: style: Variable 'sb' can be declared as pointer to const [constVariablePointer] proxychains-ng-4.17/tests/test_sendto.c:29:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/tests/test_sendto.c:38:11: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] proxychains-ng-4.17/tests/test_sendto.c:41:3: error: Resource leak: sockfd [resourceLeak] proxychains-ng-4.17/tests/test_sendto.c:55:4: error: Resource leak: sockfd [resourceLeak] proxychains-ng-4.17/tests/test_sendto.c:20:26: style: Parameter 'argv' can be declared as const array [constParameter] proxychains-ng-4.17/tests/test_sendto.c:33:18: style: Variable 'server' can be declared as pointer to const [constVariablePointer] proxychains-ng-4.17/tests/test_shm.c:11:8: style: Variable 'r' can be declared as pointer to const [constVariablePointer] proxychains-ng-4.17/tests/test_v4_in_v6.c:18:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] proxychains-ng-4.17/tests/test_v4_in_v6.c:29:3: error: Memory leak: result [memleak] proxychains-ng-4.17/tests/test_v4_in_v6.c:17:19: style: Unused variable: res [unusedVariable] diff: DONE