2025-10-22 02:17 ftp://ftp.de.debian.org/debian/pool/main/j/junixsocket/junixsocket_2.6.1.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -j8 platform: Linux-6.16.12+deb14+1-amd64-x86_64-with-glibc2.41 python: 3.13.9 client-version: 1.3.69 compiler: g++ (Debian 15.2.0-5) 15.2.0 cppcheck: head 2.18.0 head-info: 901a3311 (2025-10-21 10:10:52 +0200) count: 81 2 elapsed-time: 0.3 0.1 head-timing-info: old-timing-info: head results: junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/ancillary.c:100:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cmsghdr [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/ancillary.c:98:33: style: Parameter 'klazz' can be declared as pointer to const [constParameterPointer] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/capabilities.c:53:111: style: Parameter 'clazz' can be declared as pointer to const [constParameterPointer] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/credentials.c:105:107: style: Parameter 'clazz' can be declared as pointer to const [constParameterPointer] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/accept.c:80:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:53:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:110:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:142:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pollfd [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/bind.c:66:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:80:17: style: Condition 'ret==-1' is always true [knownConditionTrueFalse] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:71:16: note: Assuming that condition 'ret!=-1' is not redundant junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:80:17: note: Condition 'ret==-1' is always true junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:143:6: warning: If memory allocation fails, then there is a possible null pointer dereference: pollFd [nullPointerOutOfMemory] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:142:36: note: Assuming allocation function fails junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:142:36: note: Assignment 'pollFd=calloc(1,sizeof(struct pollfd))', assigned value is 0 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:143:6: note: Null pointer dereference junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:144:6: warning: If memory allocation fails, then there is a possible null pointer dereference: pollFd [nullPointerOutOfMemory] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:142:36: note: Assuming allocation function fails junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:142:36: note: Assignment 'pollFd=calloc(1,sizeof(struct pollfd))', assigned value is 0 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:144:6: note: Null pointer dereference junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:48:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:80:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:126:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_un [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:146:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_un [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:349:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_un [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:418:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_un [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:142:12: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/exceptions.c:189:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:106:33: style: Parameter 'clazz' can be declared as pointer to const [constParameterPointer] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:118:23: style: Parameter 'clazz' can be declared as pointer to const [constParameterPointer] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:159:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSIZE_MAX [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:32:10: style: struct member 'jux_tipc_addr::addrType' is never used. [unusedStructMember] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:33:10: style: struct member 'jux_tipc_addr::scope' is never used. [unusedStructMember] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:34:10: style: struct member 'jux_tipc_addr::a' is never used. [unusedStructMember] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:35:10: style: struct member 'jux_tipc_addr::b' is never used. [unusedStructMember] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:36:10: style: struct member 'jux_tipc_addr::c' is never used. [unusedStructMember] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:40:10: style: struct member 'jux_vsock_addr::reserved1' is never used. [unusedStructMember] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:47:14: warning: If memory allocation fails, then there is a possible null pointer dereference: message [nullPointerOutOfMemory] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:45:27: note: Assuming allocation function fails junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:45:27: note: Assignment 'message=calloc(1,buflen)', assigned value is 0 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:47:14: note: Null pointer dereference junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:158:20: error: Pointer addition with NULL pointer. [nullPointerArithmetic] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:153:15: note: Assignment 'buf=NULL', assigned value is 0 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:158:20: note: Null pointer addition junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:41:10: style: struct member 'jux_vsock_addr::port' is never used. [unusedStructMember] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:24:63: style: Parameter 'fieldName' can be declared as pointer to const [constParameterPointer] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:42:10: style: struct member 'jux_vsock_addr::cid' is never used. [unusedStructMember] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/init.c:132:22: style: Parameter 'clazz' can be declared as pointer to const [constParameterPointer] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/init.c:168:22: style: Parameter 'clazz' can be declared as pointer to const [constParameterPointer] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/exceptions.c:160:13: warning: If memory allocation fails, then there is a possible null pointer dereference: message [nullPointerOutOfMemory] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/exceptions.c:134:27: note: Assuming allocation function fails junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/exceptions.c:134:27: note: Assignment 'message=calloc(1,buflen+1)', assigned value is 0 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/exceptions.c:160:13: note: Null pointer dereference junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/bind.c:241:21: error: Return value of allocation function 'mkstemp' is not stored. [leakReturnValNotUsed] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/pipe.c:37:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CLOEXEC [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/bind.c:355:17: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/bind.c:351:17: note: ret is assigned junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/bind.c:355:17: note: ret is overwritten junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/listen.c:37:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/filedescriptors.c:179:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHUT_RDWR [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/filedescriptors.c:279:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/filedescriptors.c:320:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/filedescriptors.c:343:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EWOULDBLOCK [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/filedescriptors.c:383:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/bind.c:355:17: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/receive.c:39:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_PEEK [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/receive.c:59:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/receive.c:77:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable msg_controllen [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/receive.c:354:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socket.c:69:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socket.c:83:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socket.c:144:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socket.c:181:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketpair.c:161:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/polling.c:64:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/polling.c:74:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/polling.c:279:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FIONREAD [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/polling.c:357:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pollfd [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socket.c:27:32: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socket.c:100:23: style: Parameter 'klazz' can be declared as pointer to const [constParameterPointer] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:66:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:149:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOL_SOCKET [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:259:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:309:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/polling.c:317:21: style: Local variable 'count' shadows outer variable [shadowVariable] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/polling.c:274:9: note: Shadowed declaration junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/polling.c:317:21: note: Shadow variable junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:71:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SO_KEEPALIVE [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:103:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SO_SNDTIMEO [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:165:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SO_SNDTIMEO [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:324:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:386:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/receive.c:133:54: style: Condition 'ancSupp==NULL' is always false [knownConditionTrueFalse] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/vsock.c:60:33: style: Parameter 'klazz' can be declared as pointer to const [constParameterPointer] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/receive.c:150:24: style: Variable 'data' can be declared as pointer to const [constVariablePointer] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:297:15: style: Condition 'domain==-1' is always true [knownConditionTrueFalse] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:296:34: note: Calling function 'optionDomainToNative' returns -1 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:296:34: note: Assignment 'domain=optionDomainToNative(domain)', assigned value is -1 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:297:15: note: Condition 'domain==-1' is always true junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:349:15: style: Condition 'domain==-1' is always true [knownConditionTrueFalse] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:348:34: note: Calling function 'optionDomainToNative' returns -1 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:348:34: note: Assignment 'domain=optionDomainToNative(domain)', assigned value is -1 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:349:15: note: Condition 'domain==-1' is always true junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:42:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:142:15: style: Condition 'ancFds!=NULL' is always true [knownConditionTrueFalse] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:193:53: style: Condition 'sleepForRetryWriting()' is always true [knownConditionTrueFalse] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:193:53: note: Calling function 'sleepForRetryWriting' returns 1 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:193:53: note: Condition 'sleepForRetryWriting()' is always true junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:47:41: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] diff: head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/accept.c:80:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:106:33: style: Parameter 'clazz' can be declared as pointer to const [constParameterPointer] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:118:23: style: Parameter 'clazz' can be declared as pointer to const [constParameterPointer] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:126:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_un [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:142:12: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:146:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_un [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:32:10: style: struct member 'jux_tipc_addr::addrType' is never used. [unusedStructMember] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:33:10: style: struct member 'jux_tipc_addr::scope' is never used. [unusedStructMember] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:349:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_un [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:34:10: style: struct member 'jux_tipc_addr::a' is never used. [unusedStructMember] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:35:10: style: struct member 'jux_tipc_addr::b' is never used. [unusedStructMember] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:36:10: style: struct member 'jux_tipc_addr::c' is never used. [unusedStructMember] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:40:10: style: struct member 'jux_vsock_addr::reserved1' is never used. [unusedStructMember] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:418:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_un [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:41:10: style: struct member 'jux_vsock_addr::port' is never used. [unusedStructMember] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:42:10: style: struct member 'jux_vsock_addr::cid' is never used. [unusedStructMember] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:48:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/address.c:80:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/ancillary.c:100:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cmsghdr [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/ancillary.c:98:33: style: Parameter 'klazz' can be declared as pointer to const [constParameterPointer] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/bind.c:241:21: error: Return value of allocation function 'mkstemp' is not stored. [leakReturnValNotUsed] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/bind.c:355:17: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/bind.c:355:17: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/bind.c:351:17: note: ret is assigned junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/bind.c:355:17: note: ret is overwritten head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/bind.c:66:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/capabilities.c:53:111: style: Parameter 'clazz' can be declared as pointer to const [constParameterPointer] 2.18.0 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/config.h:176:0: error: failed to evaluate #if condition, division/modulo by zero [preprocessorErrorDirective] 2.18.0 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/config.h:176:4: error: failed to evaluate #if condition, division/modulo by zero [preprocessorErrorDirective] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:110:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:142:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pollfd [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:143:6: warning: If memory allocation fails, then there is a possible null pointer dereference: pollFd [nullPointerOutOfMemory] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:142:36: note: Assuming allocation function fails junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:142:36: note: Assignment 'pollFd=calloc(1,sizeof(struct pollfd))', assigned value is 0 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:143:6: note: Null pointer dereference head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:144:6: warning: If memory allocation fails, then there is a possible null pointer dereference: pollFd [nullPointerOutOfMemory] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:142:36: note: Assuming allocation function fails junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:142:36: note: Assignment 'pollFd=calloc(1,sizeof(struct pollfd))', assigned value is 0 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:144:6: note: Null pointer dereference head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:53:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:80:17: style: Condition 'ret==-1' is always true [knownConditionTrueFalse] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:71:16: note: Assuming that condition 'ret!=-1' is not redundant junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/connect.c:80:17: note: Condition 'ret==-1' is always true head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/credentials.c:105:107: style: Parameter 'clazz' can be declared as pointer to const [constParameterPointer] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/exceptions.c:160:13: warning: If memory allocation fails, then there is a possible null pointer dereference: message [nullPointerOutOfMemory] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/exceptions.c:134:27: note: Assuming allocation function fails junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/exceptions.c:134:27: note: Assignment 'message=calloc(1,buflen+1)', assigned value is 0 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/exceptions.c:160:13: note: Null pointer dereference head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/exceptions.c:189:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/filedescriptors.c:179:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHUT_RDWR [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/filedescriptors.c:279:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/filedescriptors.c:320:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/filedescriptors.c:343:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EWOULDBLOCK [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/filedescriptors.c:383:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/init.c:132:22: style: Parameter 'clazz' can be declared as pointer to const [constParameterPointer] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/init.c:168:22: style: Parameter 'clazz' can be declared as pointer to const [constParameterPointer] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:158:20: error: Pointer addition with NULL pointer. [nullPointerArithmetic] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:153:15: note: Assignment 'buf=NULL', assigned value is 0 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:158:20: note: Null pointer addition head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:159:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSIZE_MAX [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:24:63: style: Parameter 'fieldName' can be declared as pointer to const [constParameterPointer] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:47:14: warning: If memory allocation fails, then there is a possible null pointer dereference: message [nullPointerOutOfMemory] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:45:27: note: Assuming allocation function fails junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:45:27: note: Assignment 'message=calloc(1,buflen)', assigned value is 0 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/jniutil.c:47:14: note: Null pointer dereference head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/listen.c:37:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/pipe.c:37:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CLOEXEC [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/polling.c:279:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FIONREAD [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/polling.c:317:21: style: Local variable 'count' shadows outer variable [shadowVariable] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/polling.c:274:9: note: Shadowed declaration junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/polling.c:317:21: note: Shadow variable head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/polling.c:357:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pollfd [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/polling.c:64:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/polling.c:74:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/receive.c:133:54: style: Condition 'ancSupp==NULL' is always false [knownConditionTrueFalse] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/receive.c:150:24: style: Variable 'data' can be declared as pointer to const [constVariablePointer] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/receive.c:354:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/receive.c:39:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_PEEK [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/receive.c:59:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/receive.c:77:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable msg_controllen [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:142:15: style: Condition 'ancFds!=NULL' is always true [knownConditionTrueFalse] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:149:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOL_SOCKET [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:193:53: style: Condition 'sleepForRetryWriting()' is always true [knownConditionTrueFalse] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:193:53: note: Calling function 'sleepForRetryWriting' returns 1 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:193:53: note: Condition 'sleepForRetryWriting()' is always true head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:259:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:309:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:42:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:47:41: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/send.c:66:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socket.c:100:23: style: Parameter 'klazz' can be declared as pointer to const [constParameterPointer] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socket.c:144:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socket.c:181:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socket.c:27:32: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socket.c:69:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socket.c:83:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:103:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SO_SNDTIMEO [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:165:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SO_SNDTIMEO [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:297:15: style: Condition 'domain==-1' is always true [knownConditionTrueFalse] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:296:34: note: Calling function 'optionDomainToNative' returns -1 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:296:34: note: Assignment 'domain=optionDomainToNative(domain)', assigned value is -1 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:297:15: note: Condition 'domain==-1' is always true head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:324:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:349:15: style: Condition 'domain==-1' is always true [knownConditionTrueFalse] junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:348:34: note: Calling function 'optionDomainToNative' returns -1 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:348:34: note: Assignment 'domain=optionDomainToNative(domain)', assigned value is -1 junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:349:15: note: Condition 'domain==-1' is always true head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:386:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketoptions.c:71:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SO_KEEPALIVE [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/socketpair.c:161:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head junixsocket-junixsocket-2.6.1/junixsocket-native/src/main/c/vsock.c:60:33: style: Parameter 'klazz' can be declared as pointer to const [constParameterPointer] DONE