2026-05-05 10:45 ftp://ftp.de.debian.org/debian/pool/main/t/torsocks/torsocks_2.5.0.orig.tar.bz2 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 --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: 28dfa41 (2026-05-05 12:37:18 +0200) count: 157 145 elapsed-time: 0.6 0.5 head-timing-info: old-timing-info: head results: torsocks-v2.5.0/src/common/compat.h:67:2: error: #error "OS not supported." [preprocessorErrorDirective] torsocks-v2.5.0/src/lib/torsocks.h:233:2: error: #error "OS not supported." [preprocessorErrorDirective] torsocks-v2.5.0/tests/helpers.c:37:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/test_connect.c:41:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/test_dns.c:125:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/test_dns.c:161:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/test_dns.c:68:10: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] torsocks-v2.5.0/tests/test_dns.c:142:7: style: Obsolescent function 'gethostbyaddr' called. It is recommended to use 'getnameinfo' instead. [prohibitedgethostbyaddrCalled] torsocks-v2.5.0/tests/test_dns.c:184:2: error: Mismatching allocation and deallocation: result [mismatchAllocDealloc] torsocks-v2.5.0/tests/test_dns.c:169:50: note: Mismatching allocation and deallocation: result torsocks-v2.5.0/tests/test_dns.c:184:2: note: Mismatching allocation and deallocation: result torsocks-v2.5.0/tests/test_dns.c:62:21: style: Variable 'he' can be declared as pointer to const [constVariablePointer] torsocks-v2.5.0/tests/test_dns.c:70:9: style: Variable 'addr' can be declared as pointer to const [constVariablePointer] torsocks-v2.5.0/tests/test_dns.c:86:18: style: Variable 'result_entp' can be declared as pointer to const [constVariablePointer] torsocks-v2.5.0/tests/test_dns.c:134:18: style: Variable 'he' can be declared as pointer to const [constVariablePointer] torsocks-v2.5.0/tests/test_dns.c:172:9: style: Variable 'ip' can be declared as pointer to const [constVariablePointer] torsocks-v2.5.0/tests/test_dns.c:96:37: error: Uninitialized variable: buf [uninitvar] torsocks-v2.5.0/tests/test_dns.c:96:50: error: Uninitialized variable: &result_entp [uninitvar] torsocks-v2.5.0/tests/test_dns.c:96:64: error: Uninitialized variable: &h_errno [uninitvar] torsocks-v2.5.0/tests/test_dns.c:115:37: error: Uninitialized variable: buf [uninitvar] torsocks-v2.5.0/tests/test_dns.c:115:50: error: Uninitialized variable: &result_entp [uninitvar] torsocks-v2.5.0/tests/test_dns.c:115:64: error: Uninitialized variable: &h_errno [uninitvar] torsocks-v2.5.0/tests/test_fd_passing.c:68:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iov_base [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/test_fd_passing.c:103:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOL_SOCKET [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/test_fd_passing.c:143:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSIZE_MAX [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/test_fd_passing.c:193:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iov_base [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/test_fd_passing.c:255:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/test_fd_passing.c:295:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/test_fd_passing.c:378:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/test_fd_passing.c:483:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/test_fd_passing.c:87:50: style: Parameter 'fds' can be declared as pointer to const [constParameterPointer] torsocks-v2.5.0/tests/test_fd_passing.c:94:7: style: Variable 'tmp' is not assigned a value. [unassignedVariable] torsocks-v2.5.0/tests/test_getpeername.c:33:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET_ADDRSTRLEN [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/test_getpeername.c:48:33: error: Null pointer dereference [nullPointer] torsocks-v2.5.0/tests/test_getpeername.c:48:39: error: Null pointer dereference [nullPointer] torsocks-v2.5.0/tests/test_getpeername.c:76:31: error: Null pointer dereference [nullPointer] torsocks-v2.5.0/tests/test_getpeername.c:79:38: error: Null pointer dereference [nullPointer] torsocks-v2.5.0/tests/test_getpeername.c:59:39: error: Uninitialized variable: addrlen [legacyUninitvar] torsocks-v2.5.0/tests/test_socket.c:40:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/test_socket.c:66:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_NONBLOCK [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/test_socket.c:34:17: warning: Either the condition 'fd[0]!=-1' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] torsocks-v2.5.0/tests/test_socket.c:36:12: note: Assuming that condition 'fd[0]!=-1' is not redundant torsocks-v2.5.0/tests/test_socket.c:34:17: note: Invalid argument torsocks-v2.5.0/tests/test_socket.c:35:17: warning: Either the condition 'fd[1]!=-1' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] torsocks-v2.5.0/tests/test_socket.c:36:27: note: Assuming that condition 'fd[1]!=-1' is not redundant torsocks-v2.5.0/tests/test_socket.c:35:17: note: Invalid argument torsocks-v2.5.0/tests/test_socket.c:51:14: warning: Either the condition 'fd!=-1' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] torsocks-v2.5.0/tests/test_socket.c:52:9: note: Assuming that condition 'fd!=-1' is not redundant torsocks-v2.5.0/tests/test_socket.c:51:14: note: Invalid argument torsocks-v2.5.0/tests/test_socket.c:55:14: warning: Either the condition 'fd!=-1' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] torsocks-v2.5.0/tests/test_socket.c:56:9: note: Assuming that condition 'fd!=-1' is not redundant torsocks-v2.5.0/tests/test_socket.c:55:14: note: Invalid argument torsocks-v2.5.0/tests/test_socket.c:59:14: warning: Either the condition 'fd!=-1' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] torsocks-v2.5.0/tests/test_socket.c:60:9: note: Assuming that condition 'fd!=-1' is not redundant torsocks-v2.5.0/tests/test_socket.c:59:14: note: Invalid argument torsocks-v2.5.0/tests/test_socket.c:63:14: warning: Either the condition 'fd!=-1' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] torsocks-v2.5.0/tests/test_socket.c:64:9: note: Assuming that condition 'fd!=-1' is not redundant torsocks-v2.5.0/tests/test_socket.c:63:14: note: Invalid argument torsocks-v2.5.0/tests/test_socket.c:68:14: warning: Either the condition 'fd!=-1' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] torsocks-v2.5.0/tests/test_socket.c:69:9: note: Assuming that condition 'fd!=-1' is not redundant torsocks-v2.5.0/tests/test_socket.c:68:14: note: Invalid argument torsocks-v2.5.0/tests/test_socket.c:72:14: warning: Either the condition 'fd!=-1' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] torsocks-v2.5.0/tests/test_socket.c:73:9: note: Assuming that condition 'fd!=-1' is not redundant torsocks-v2.5.0/tests/test_socket.c:72:14: note: Invalid argument torsocks-v2.5.0/tests/test_socket.c:76:14: warning: Either the condition 'fd!=-1' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] torsocks-v2.5.0/tests/test_socket.c:77:9: note: Assuming that condition 'fd!=-1' is not redundant torsocks-v2.5.0/tests/test_socket.c:76:14: note: Invalid argument torsocks-v2.5.0/tests/test_socket.c:81:14: warning: Either the condition 'fd!=-1' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] torsocks-v2.5.0/tests/test_socket.c:82:9: note: Assuming that condition 'fd!=-1' is not redundant torsocks-v2.5.0/tests/test_socket.c:81:14: note: Invalid argument torsocks-v2.5.0/tests/test_socket.c:88:2: error: Resource leak: fd [resourceLeak] torsocks-v2.5.0/tests/test_socket.c:92:2: error: Resource leak: fd [resourceLeak] torsocks-v2.5.0/tests/test_socket.c:97:2: error: Resource leak: fd [resourceLeak] torsocks-v2.5.0/tests/test_socket.c:101:2: error: Resource leak: fd [resourceLeak] torsocks-v2.5.0/tests/test_socket.c:105:2: error: Resource leak: fd [resourceLeak] torsocks-v2.5.0/tests/test_socket.c:109:2: error: Resource leak: fd [resourceLeak] torsocks-v2.5.0/tests/unit/test_compat.c:33:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_config-file.c:37:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_DOMAIN_NAME_SIZE [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_config-file.c:55:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_DOMAIN_NAME_SIZE [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_config-file.c:73:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_DOMAIN_NAME_SIZE [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_config-file.c:152:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TORSOCKS_FIXTURE_PATH [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_connection.c:38:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECTION_DOMAIN_INET [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_connection.c:96:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECTION_DOMAIN_INET [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_connection.c:33:36: style: Variable 'l_conn' can be declared as pointer to const [constVariablePointer] torsocks-v2.5.0/tests/unit/test_onion.c:42:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_ONION_ADDR_RANGE [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_onion.c:106:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_ONION_ADDR_RANGE [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:56:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECTION_DOMAIN_INET6 [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:68:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECTION_DOMAIN_NAME [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:112:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:122:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_NO_AUTH_METHOD [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:129:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:146:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable socks5_request [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:167:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:178:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:189:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:200:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:211:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:222:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:233:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:244:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:255:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:266:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:277:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:295:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable socks5_request [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:316:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:338:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:356:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_REPLY_SUCCESS [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:365:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:375:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:385:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:402:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable socks5_request [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:415:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable socks5_request [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:435:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:455:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_VERSION [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:475:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_NO_AUTH_METHOD [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:495:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_NO_AUTH_METHOD [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:545:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ECONNABORTED [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:562:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ECONNABORTED [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:583:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_ATYP_DOMAIN [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:680:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ECONNREFUSED [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:696:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ECONNREFUSED [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:712:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENETUNREACH [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:728:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EHOSTUNREACH [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:744:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ECONNREFUSED [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:760:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETIMEDOUT [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:777:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ECONNREFUSED [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:794:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ECONNREFUSED [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:810:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ECONNABORTED [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:846:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKS5_ATYP_DOMAIN [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:881:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:893:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET6_ADDRSTRLEN [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:956:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ECONNABORTED [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:974:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ECONNABORTED [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:992:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:1009:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:1021:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET6_ADDRSTRLEN [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:1072:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:1141:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ECONNABORTED [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:1159:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ECONNABORTED [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:1177:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_socks5.c:88:58: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'socks5_recv_data_error_stub' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] torsocks-v2.5.0/tests/unit/test_socks5.c:1119:20: note: You might need to cast the function pointer here torsocks-v2.5.0/tests/unit/test_socks5.c:88:58: note: Parameter 'buf' can be declared as pointer to const torsocks-v2.5.0/tests/unit/test_socks5.c:431:7: style: Variable 'hostname' can be declared as const array [constVariable] torsocks-v2.5.0/tests/unit/test_socks5.c:151:28: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] torsocks-v2.5.0/tests/unit/test_socks5.c:153:29: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] torsocks-v2.5.0/tests/unit/test_socks5.c:155:29: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] torsocks-v2.5.0/tests/unit/test_socks5.c:297:31: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] torsocks-v2.5.0/tests/unit/test_socks5.c:299:32: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] torsocks-v2.5.0/tests/unit/test_socks5.c:404:65: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] torsocks-v2.5.0/tests/unit/test_socks5.c:417:65: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] torsocks-v2.5.0/tests/unit/test_socks5.c:441:21: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] torsocks-v2.5.0/tests/unit/test_utils.c:67:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TSOCKS_LOOPBACK [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_utils.c:119:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_utils.c:145:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_MAX_CONF_TOKEN [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_utils.c:153:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/unit/test_utils.c:195:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/utils/tap/tap.c:126:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/utils/tap/tap.c:184:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/utils/tap/tap.c:201:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/utils/tap/tap.c:252:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/utils/tap/tap.c:279:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] torsocks-v2.5.0/tests/utils/tap/tap.c:118:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] torsocks-v2.5.0/tests/utils/tap/tap.c:294:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] torsocks-v2.5.0/tests/utils/tap/tap.c:314:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] torsocks-v2.5.0/tests/utils/tap/tap.c:414:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] torsocks-v2.5.0/tests/utils/tap/tap.c:308:3: error: Memory leak: skip_msg [memleak] torsocks-v2.5.0/tests/utils/tap/tap.c:73:17: style:inconclusive: Function '_gen_result' argument 1 names different: declaration '' definition 'ok'. [funcArgNamesDifferentUnnamed] torsocks-v2.5.0/tests/utils/tap/tap.c:73:33: style:inconclusive: Function '_gen_result' argument 2 names different: declaration '' definition 'func'. [funcArgNamesDifferentUnnamed] torsocks-v2.5.0/tests/utils/tap/tap.c:73:45: style:inconclusive: Function '_gen_result' argument 3 names different: declaration '' definition 'file'. [funcArgNamesDifferentUnnamed] torsocks-v2.5.0/tests/utils/tap/tap.c:73:64: style:inconclusive: Function '_gen_result' argument 4 names different: declaration '' definition 'line'. [funcArgNamesDifferentUnnamed] torsocks-v2.5.0/tests/utils/tap/tap.c:74:12: style:inconclusive: Function '_gen_result' argument 5 names different: declaration '' definition 'test_name'. [funcArgNamesDifferentUnnamed] torsocks-v2.5.0/tests/utils/tap/tap.c:219:21: style:inconclusive: Function 'plan_skip_all' argument 1 names different: declaration '' definition 'reason'. [funcArgNamesDifferentUnnamed] torsocks-v2.5.0/tests/utils/tap/tap.c:244:25: style:inconclusive: Function 'plan_tests' argument 1 names different: declaration '' definition 'tests'. [funcArgNamesDifferentUnnamed] torsocks-v2.5.0/tests/utils/tap/tap.c:275:12: style:inconclusive: Function 'diag' argument 1 names different: declaration '' definition 'fmt'. [funcArgNamesDifferentUnnamed] torsocks-v2.5.0/tests/utils/tap/tap.c:291:30: style:inconclusive: Function '_expected_tests' argument 1 names different: declaration '' definition 'tests'. [funcArgNamesDifferentUnnamed] torsocks-v2.5.0/tests/utils/tap/tap.c:299:19: style:inconclusive: Function 'skip' argument 1 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] torsocks-v2.5.0/tests/utils/tap/tap.c:299:28: style:inconclusive: Function 'skip' argument 2 names different: declaration '' definition 'fmt'. [funcArgNamesDifferentUnnamed] torsocks-v2.5.0/tests/utils/tap/tap.c:327:18: style:inconclusive: Function 'todo_start' argument 1 names different: declaration '' definition 'fmt'. [funcArgNamesDifferentUnnamed] torsocks-v2.5.0/tests/utils/tap/tap.c:78:8: style: Variable 'c' can be declared as pointer to const [constVariablePointer] torsocks-v2.5.0/tests/utils/tap/tap.c:219:21: style: Parameter 'reason' can be declared as pointer to const [constParameterPointer] diff: head torsocks-v2.5.0/tests/utils/tap/tap.c:219:21: style:inconclusive: Function 'plan_skip_all' argument 1 names different: declaration '' definition 'reason'. [funcArgNamesDifferentUnnamed] head torsocks-v2.5.0/tests/utils/tap/tap.c:244:25: style:inconclusive: Function 'plan_tests' argument 1 names different: declaration '' definition 'tests'. [funcArgNamesDifferentUnnamed] head torsocks-v2.5.0/tests/utils/tap/tap.c:275:12: style:inconclusive: Function 'diag' argument 1 names different: declaration '' definition 'fmt'. [funcArgNamesDifferentUnnamed] head torsocks-v2.5.0/tests/utils/tap/tap.c:291:30: style:inconclusive: Function '_expected_tests' argument 1 names different: declaration '' definition 'tests'. [funcArgNamesDifferentUnnamed] head torsocks-v2.5.0/tests/utils/tap/tap.c:299:19: style:inconclusive: Function 'skip' argument 1 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] head torsocks-v2.5.0/tests/utils/tap/tap.c:299:28: style:inconclusive: Function 'skip' argument 2 names different: declaration '' definition 'fmt'. [funcArgNamesDifferentUnnamed] head torsocks-v2.5.0/tests/utils/tap/tap.c:327:18: style:inconclusive: Function 'todo_start' argument 1 names different: declaration '' definition 'fmt'. [funcArgNamesDifferentUnnamed] head torsocks-v2.5.0/tests/utils/tap/tap.c:73:17: style:inconclusive: Function '_gen_result' argument 1 names different: declaration '' definition 'ok'. [funcArgNamesDifferentUnnamed] head torsocks-v2.5.0/tests/utils/tap/tap.c:73:33: style:inconclusive: Function '_gen_result' argument 2 names different: declaration '' definition 'func'. [funcArgNamesDifferentUnnamed] head torsocks-v2.5.0/tests/utils/tap/tap.c:73:45: style:inconclusive: Function '_gen_result' argument 3 names different: declaration '' definition 'file'. [funcArgNamesDifferentUnnamed] head torsocks-v2.5.0/tests/utils/tap/tap.c:73:64: style:inconclusive: Function '_gen_result' argument 4 names different: declaration '' definition 'line'. [funcArgNamesDifferentUnnamed] head torsocks-v2.5.0/tests/utils/tap/tap.c:74:12: style:inconclusive: Function '_gen_result' argument 5 names different: declaration '' definition 'test_name'. [funcArgNamesDifferentUnnamed] DONE