2024-03-25 20:12 ftp://ftp.de.debian.org/debian/pool/main/s/socat/socat_1.8.0.0.orig.tar.bz2 cppcheck-options: --library=posix --library=gnu --library=bsd --library=bsd --library=openssl --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-6.5.0-25-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.55 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 cppcheck: head 2.13.0 head-info: d8e4914 (2024-03-25 20:39:31 +0100) count: 169 118 elapsed-time: 9.3 7.3 head-timing-info: old-timing-info: head results: socat-1.8.0.0/dalan.c:94:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] socat-1.8.0.0/dalan.c:53:19: portability:inconclusive: Casting from long double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] socat-1.8.0.0/dalan.c:32:8: style: union member 'Anonymous2::a' is never used. [unusedStructMember] socat-1.8.0.0/error.c:142:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] socat-1.8.0.0/error.c:178:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_PID [valueFlowBailoutIncompleteVar] socat-1.8.0.0/error.c:233:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] socat-1.8.0.0/error.c:282:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/error.c:475:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/error.c:499:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] socat-1.8.0.0/error.c:257:7: error: Resource handle 'fd' freed twice. [doubleFree] socat-1.8.0.0/error.c:253:7: note: Resource handle 'fd' freed twice. socat-1.8.0.0/error.c:257:7: note: Resource handle 'fd' freed twice. socat-1.8.0.0/error.c:505:4: error: Returning/dereferencing 'newfd' after it is deallocated / released [deallocret] socat-1.8.0.0/error.c:503:26: note: Returning/dereferencing 'newfd' after it is deallocated / released socat-1.8.0.0/error.c:505:4: note: Returning/dereferencing 'newfd' after it is deallocated / released socat-1.8.0.0/error.c:550:30: warning: Either the condition 'readfds' is redundant or there is possible null pointer dereference: readfds. [nullPointerRedundantCheck] socat-1.8.0.0/error.c:558:11: note: Assuming that condition 'readfds' is not redundant socat-1.8.0.0/error.c:550:30: note: Null pointer dereference socat-1.8.0.0/error.c:553:36: warning: Either the condition 'readfds' is redundant or there is possible null pointer dereference: readfds. [nullPointerRedundantCheck] socat-1.8.0.0/error.c:558:11: note: Assuming that condition 'readfds' is not redundant socat-1.8.0.0/error.c:553:36: note: Null pointer dereference socat-1.8.0.0/error.c:517:28: error: Uninitialized variables: &diag_dgram.now, &diag_dgram.level, &diag_dgram._errno [uninitvar] socat-1.8.0.0/error.c:101:8: style: struct member 'sermsg::severity' is never used. [unusedStructMember] socat-1.8.0.0/fdname.c:42:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/fdname.c:113:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] socat-1.8.0.0/fdname.c:191:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/fdname.c:198:19: portability: Non reentrant function 'ttyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ttyname_r'. [prohibitedttynameCalled] socat-1.8.0.0/fdname.c:219:25: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] socat-1.8.0.0/fdname.c:195:13: style: Variable 'name' can be declared as pointer to const [constVariablePointer] socat-1.8.0.0/fdname.c:23:8: style: struct member 'sockopt::so' is never used. [unusedStructMember] socat-1.8.0.0/fdname.c:24:10: style: struct member 'sockopt::name' is never used. [unusedStructMember] socat-1.8.0.0/filan.c:62:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/filan.c:116:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/filan.c:348:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFD [valueFlowBailoutIncompleteVar] socat-1.8.0.0/filan.c:1064:11: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] socat-1.8.0.0/filan.c:1064:19: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] socat-1.8.0.0/filan.c:399:7: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] socat-1.8.0.0/filan.c:216:22: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] socat-1.8.0.0/filan.c:458:48: style: Parameter 'outfile' can be declared as pointer to const [constParameterPointer] socat-1.8.0.0/filan.c:499:26: style: Parameter 'outfile' can be declared as pointer to const [constParameterPointer] socat-1.8.0.0/filan.c:25:8: style: struct member 'sockopt::so' is never used. [unusedStructMember] socat-1.8.0.0/filan.c:26:10: style: struct member 'sockopt::name' is never used. [unusedStructMember] socat-1.8.0.0/filan.c:131:11: style: Variable 'ufds.fd' is assigned a value that is never used. [unreadVariable] socat-1.8.0.0/filan.c:132:15: style: Variable 'ufds.events' is assigned a value that is never used. [unreadVariable] socat-1.8.0.0/filan.c:500:8: style: Unused variable: ret [unusedVariable] socat-1.8.0.0/filan_main.c:27:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FD_SETSIZE [valueFlowBailoutIncompleteVar] socat-1.8.0.0/filan_main.c:250:93: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FD_SETSIZE [valueFlowBailoutIncompleteVar] socat-1.8.0.0/hostan.c:245:140: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable op [valueFlowBailoutIncompleteVar] socat-1.8.0.0/hostan.c:248:108: error: Null pointer dereference: (struct diag_dgram*)0 [nullPointer] socat-1.8.0.0/procan-cdefs.c:35:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] socat-1.8.0.0/procan-cdefs.c:38:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] socat-1.8.0.0/procan-cdefs.c:41:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] socat-1.8.0.0/procan.c:36:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] socat-1.8.0.0/procan.c:114:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] socat-1.8.0.0/procan.c:218:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RLIMIT_CPU [valueFlowBailoutIncompleteVar] socat-1.8.0.0/procan.c:45:36: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] socat-1.8.0.0/procan.c:78:36: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] socat-1.8.0.0/procan.c:119:81: portability: Non reentrant function 'ctermid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ctermid_r'. [prohibitedctermidCalled] socat-1.8.0.0/procan.c:127:77: portability: Non reentrant function 'ttyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ttyname_r'. [prohibitedttynameCalled] socat-1.8.0.0/procan.c:45:18: style: Condition 'errno=0' is always false [knownConditionTrueFalse] socat-1.8.0.0/procan.c:78:18: style: Condition 'errno=0' is always false [knownConditionTrueFalse] socat-1.8.0.0/procan.c:165:11: style: Condition 'rc>=0' is always false [knownConditionTrueFalse] socat-1.8.0.0/procan.c:163:10: note: Assignment 'rc=-1', assigned value is -1 socat-1.8.0.0/procan.c:165:11: note: Condition 'rc>=0' is always false socat-1.8.0.0/procan.c:64:7: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] socat-1.8.0.0/procan.c:114:9: style: Variable 'cttypath' can be declared as const array [constVariable] socat-1.8.0.0/procan_main.c:39:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] socat-1.8.0.0/snprinterr.c:59:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/snprinterr.c:39:14: style: Checking if unsigned expression 'size' is less than zero. [unsignedLessThanZero] socat-1.8.0.0/snprinterr.c:37:16: note: Assignment 'count=0', assigned value is 0 socat-1.8.0.0/snprinterr.c:38:13: note: Assuming condition is false socat-1.8.0.0/snprinterr.c:39:14: note: Unsigned less than zero socat-1.8.0.0/snprinterr.c:57:15: style: Variable 'bufp' can be declared as pointer to const [constVariablePointer] socat-1.8.0.0/socat.c:77:34: error: Syntax Error: AST broken, binary operator '=' doesn't have two operands. [internalAstError] socat-1.8.0.0/sycls.c:57:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/sycls.c:547:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/sycls.c:568:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/sycls.c:603:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/sycls.c:621:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/sycls.c:639:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/sycls.c:703:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/sycls.c:722:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/sycls.c:868:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/sycls.c:957:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/sycls.c:579:16: style: Unused variable: _errno [unusedVariable] socat-1.8.0.0/sycls.c:1057:16: style: Unused variable: _errno [unusedVariable] socat-1.8.0.0/sysutils.c:36:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/sysutils.c:365:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/sysutils.c:613:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HOST_NOT_FOUND [valueFlowBailoutIncompleteVar] socat-1.8.0.0/sysutils.c:639:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable revents [valueFlowBailoutIncompleteVar] socat-1.8.0.0/sysutils.c:802:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/sysutils.c:1048:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/sysutils.c:1116:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] socat-1.8.0.0/sysutils.c:985:10: style: Condition 'c=='\0'' is always false [knownConditionTrueFalse] socat-1.8.0.0/sysutils.c:1001:9: style: Condition 'c=='\0'' is always false [knownConditionTrueFalse] socat-1.8.0.0/sysutils.c:1093:3: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] socat-1.8.0.0/sysutils.c:790:10: style: Variable 'oldval' can be declared as pointer to const [constVariablePointer] socat-1.8.0.0/sysutils.c:525:6: style: Unused variable: res4 [unusedVariable] socat-1.8.0.0/sysutils.c:525:12: style: Unused variable: res6 [unusedVariable] socat-1.8.0.0/utils.c:51:25: style: Condition 'upper-lower>1' is always false [knownConditionTrueFalse] socat-1.8.0.0/utils.c:63:14: note: Assuming that condition 'nkeys>0' is not redundant socat-1.8.0.0/utils.c:49:12: note: Assignment 'upper=nkeys', assigned value is 0 socat-1.8.0.0/utils.c:51:25: note: Condition 'upper-lower>1' is always false socat-1.8.0.0/vsnprintf_r.c:388:9: style: Variable 'np' can be declared as pointer to const [constVariablePointer] socat-1.8.0.0/xio-ascii.c:122:14: style: Checking if unsigned expression 'bytes' is less than zero. [unsignedLessThanZero] socat-1.8.0.0/xio-ascii.c:151:56: style:inconclusive: Function 'xiodump' argument 3 names different: declaration 'coded' definition 'codbuff'. [funcArgNamesDifferent] socat-1.8.0.0/xio-ascii.h:21:56: note: Function 'xiodump' argument 3 names different: declaration 'coded' definition 'codbuff'. socat-1.8.0.0/xio-ascii.c:151:56: note: Function 'xiodump' argument 3 names different: declaration 'coded' definition 'codbuff'. socat-1.8.0.0/xio-process.c:48:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xio-socket.c:2282:35: error: There is an unknown macro here somewhere. Configuration is required. If F_Zd is a macro then please configure it. [unknownMacro] socat-1.8.0.0/xioclose.c:22:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioclose.c:126:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioclose.c:121:25: style:inconclusive: Function 'xioclose' argument 1 names different: declaration 'sock' definition 'file'. [funcArgNamesDifferent] socat-1.8.0.0/xio.h:520:32: note: Function 'xioclose' argument 1 names different: declaration 'sock' definition 'file'. socat-1.8.0.0/xioclose.c:121:25: note: Function 'xioclose' argument 1 names different: declaration 'sock' definition 'file'. socat-1.8.0.0/xioinitialize.c:30:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioinitialize.c:167:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable END_CLOSE [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioinitialize.c:225:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioinitialize.c:239:21: style: Variable 'sfd' can be declared as pointer to const [constVariablePointer] socat-1.8.0.0/xioinitialize.c:222:21: style: Variable 'forkwaitsecs' is assigned a value that is never used. [unreadVariable] socat-1.8.0.0/xioinitialize.c:230:18: style: Variable 'cpid' is assigned a value that is never used. [unreadVariable] socat-1.8.0.0/xiolayer.c:40:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xiolockfile.c:33:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xiolockfile.c:80:56: style: Parameter 'intervall' can be declared as pointer to const [constParameterPointer] socat-1.8.0.0/xioopen.c:434:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopen.c:453:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopen.c:551:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopen.c:713:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopen.c:489:32: style:inconclusive: Function 'xioopen' argument 1 names different: declaration 'args' definition 'addr'. [funcArgNamesDifferent] socat-1.8.0.0/xio.h:493:39: note: Function 'xioopen' argument 1 names different: declaration 'args' definition 'addr'. socat-1.8.0.0/xioopen.c:489:32: note: Function 'xioopen' argument 1 names different: declaration 'args' definition 'addr'. socat-1.8.0.0/xioopen.c:490:10: style:inconclusive: Function 'xioopen' argument 2 names different: declaration 'flags' definition 'xioflags'. [funcArgNamesDifferent] socat-1.8.0.0/xio.h:493:49: note: Function 'xioopen' argument 2 names different: declaration 'flags' definition 'xioflags'. socat-1.8.0.0/xioopen.c:490:10: note: Function 'xioopen' argument 2 names different: declaration 'flags' definition 'xioflags'. socat-1.8.0.0/xioopen.c:578:21: style: Variable 'ae' can be declared as pointer to const [constVariablePointer] socat-1.8.0.0/xioopts.c:2069:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable desc [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopts.c:2951:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopts.c:3375:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopts.c:3407:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopts.c:3441:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopts.c:3458:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopts.c:3480:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopts.c:3546:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopts.c:3702:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopts.c:3735:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopts.c:3774:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopts.c:3800:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopts.c:4171:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopts.c:4186:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopts.c:4226:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_INET [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioopts.c:2321:17: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] socat-1.8.0.0/xioopts.c:2325:32: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] socat-1.8.0.0/xioopts.c:2339:12: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] socat-1.8.0.0/xioopts.c:3874:14: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] socat-1.8.0.0/xioopts.c:2794:21: style: Condition 'groups' is always true [knownConditionTrueFalse] socat-1.8.0.0/xioopts.c:2794:12: note: Assuming that condition 'groups==0' is not redundant socat-1.8.0.0/xioopts.c:2794:21: note: Condition 'groups' is always true socat-1.8.0.0/xioopts.c:4073:30: style: Condition 'applyopt(sfd,fd,opt)<0' is always false [knownConditionTrueFalse] socat-1.8.0.0/xioopts.c:4073:15: note: Calling function 'applyopt' returns 0 socat-1.8.0.0/xioopts.c:4073:30: note: Condition 'applyopt(sfd,fd,opt)<0' is always false socat-1.8.0.0/xioopts.c:2024:22: warning: Either the condition 'a==NULL' is redundant or there is possible null pointer dereference: a. [nullPointerRedundantCheck] socat-1.8.0.0/xioopts.c:2076:13: note: Assuming that condition 'a==NULL' is not redundant socat-1.8.0.0/xioopts.c:2024:22: note: Null pointer dereference socat-1.8.0.0/xioopts.c:2068:9: warning: Either the condition 'a==NULL' is redundant or there is possible null pointer dereference: a. [nullPointerRedundantCheck] socat-1.8.0.0/xioopts.c:2076:13: note: Assuming that condition 'a==NULL' is not redundant socat-1.8.0.0/xioopts.c:2068:9: note: Null pointer dereference socat-1.8.0.0/xioopts.c:4205:8: portability: Casting between unsigned char * and double * which have an incompatible binary data representation. [invalidPointerCast] socat-1.8.0.0/xioopts.c:3836:3: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] socat-1.8.0.0/xioopts.c:4241:37: style:inconclusive: Function 'applyopts_offset' argument 1 names different: declaration 'xfd' definition 'sfd'. [funcArgNamesDifferent] socat-1.8.0.0/xioopts.h:1012:44: note: Function 'applyopts_offset' argument 1 names different: declaration 'xfd' definition 'sfd'. socat-1.8.0.0/xioopts.c:4241:37: note: Function 'applyopts_offset' argument 1 names different: declaration 'xfd' definition 'sfd'. socat-1.8.0.0/xioopts.c:4258:37: style:inconclusive: Function 'applyopts_single' argument 1 names different: declaration 'fd' definition 'sfd'. [funcArgNamesDifferent] socat-1.8.0.0/xioopts.h:1011:44: note: Function 'applyopts_single' argument 1 names different: declaration 'fd' definition 'sfd'. socat-1.8.0.0/xioopts.c:4258:37: note: Function 'applyopts_single' argument 1 names different: declaration 'fd' definition 'sfd'. socat-1.8.0.0/xioopts.c:4543:34: style:inconclusive: Function '_xio_openlate' argument 1 names different: declaration 'fd' definition 'sfd'. [funcArgNamesDifferent] socat-1.8.0.0/xioopts.h:1014:41: note: Function '_xio_openlate' argument 1 names different: declaration 'fd' definition 'sfd'. socat-1.8.0.0/xioopts.c:4543:34: note: Function '_xio_openlate' argument 1 names different: declaration 'fd' definition 'sfd'. socat-1.8.0.0/xioopts.c:2022:16: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] socat-1.8.0.0/xioopts.c:2320:21: style: Variable 'pwd' can be declared as pointer to const [constVariablePointer] socat-1.8.0.0/xioopts.c:2338:20: style: Variable 'grp' can be declared as pointer to const [constVariablePointer] socat-1.8.0.0/xioopts.c:3789:17: style: Parameter 'sfd' can be declared as pointer to const [constParameterPointer] socat-1.8.0.0/xioopts.c:2024:19: style: Variable 'a0' is assigned a value that is never used. [unreadVariable] socat-1.8.0.0/xioopts.c:2027:14: style: Unused variable: slonglongval [unusedVariable] socat-1.8.0.0/xioopts.c:4492:27: style: Variable '((unsigned short*)masks)[0]' is assigned a value that is never used. [unreadVariable] socat-1.8.0.0/xioopts.c:4494:27: style: Variable '((unsigned short*)masks)[1]' is assigned a value that is never used. [unreadVariable] socat-1.8.0.0/xioopts.c:4499:27: style: Variable '((unsigned int*)masks)[0]' is assigned a value that is never used. [unreadVariable] socat-1.8.0.0/xioopts.c:4501:27: style: Variable '((unsigned int*)masks)[1]' is assigned a value that is never used. [unreadVariable] socat-1.8.0.0/xioopts.c:4506:27: style: Variable '((uint64_t*)masks)[0]' is assigned a value that is never used. [unreadVariable] socat-1.8.0.0/xioopts.c:4508:27: style: Variable '((uint64_t*)masks)[1]' is assigned a value that is never used. [unreadVariable] socat-1.8.0.0/xioread.c:29:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioread.c:569:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioread.c:35:53: style: Condition 'file->tag&XIO_TAG_CLOSED' is always false [knownConditionTrueFalse] socat-1.8.0.0/xioread.c:33:18: note: Assuming that condition 'file->tag==XIO_TAG_DUAL' is not redundant socat-1.8.0.0/xioread.c:35:53: note: Condition 'file->tag&XIO_TAG_CLOSED' is always false socat-1.8.0.0/xioread.c:575:53: style: Condition 'file->tag&XIO_TAG_CLOSED' is always false [knownConditionTrueFalse] socat-1.8.0.0/xioread.c:573:18: note: Assuming that condition 'file->tag==XIO_TAG_DUAL' is not redundant socat-1.8.0.0/xioread.c:575:53: note: Condition 'file->tag&XIO_TAG_CLOSED' is always false socat-1.8.0.0/xioread.c:19:28: style:inconclusive: Function 'xioread' argument 1 names different: declaration 'sock1' definition 'file'. [funcArgNamesDifferent] socat-1.8.0.0/xio.h:515:35: note: Function 'xioread' argument 1 names different: declaration 'sock1' definition 'file'. socat-1.8.0.0/xioread.c:19:28: note: Function 'xioread' argument 1 names different: declaration 'sock1' definition 'file'. socat-1.8.0.0/xioread.c:564:31: style:inconclusive: Function 'xiopending' argument 1 names different: declaration 'sock1' definition 'file'. [funcArgNamesDifferent] socat-1.8.0.0/xio.h:516:38: note: Function 'xiopending' argument 1 names different: declaration 'sock1' definition 'file'. socat-1.8.0.0/xioread.c:564:31: note: Function 'xiopending' argument 1 names different: declaration 'sock1' definition 'file'. socat-1.8.0.0/xioread.c:565:19: style: Variable 'pipe' can be declared as pointer to const [constVariablePointer] socat-1.8.0.0/xioshutdown.c:17:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioshutdown.c:30:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xioshutdown.c:45:12: style: Unused variable: writenull [unusedVariable] socat-1.8.0.0/xiosigchld.c:47:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable END_KILL [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xiosigchld.c:80:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xiosigchld.c:196:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_ERR [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xiosignal.c:56:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xiowrite.c:28:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] socat-1.8.0.0/xiowrite.c:34:53: style: Condition 'file->tag&XIO_TAG_CLOSED' is always false [knownConditionTrueFalse] socat-1.8.0.0/xiowrite.c:32:18: note: Assuming that condition 'file->tag==XIO_TAG_DUAL' is not redundant socat-1.8.0.0/xiowrite.c:34:53: note: Condition 'file->tag&XIO_TAG_CLOSED' is always false socat-1.8.0.0/xiowrite.c:21:29: style:inconclusive: Function 'xiowrite' argument 1 names different: declaration 'sock1' definition 'file'. [funcArgNamesDifferent] socat-1.8.0.0/xio.h:517:36: note: Function 'xiowrite' argument 1 names different: declaration 'sock1' definition 'file'. socat-1.8.0.0/xiowrite.c:21:29: note: Function 'xiowrite' argument 1 names different: declaration 'sock1' definition 'file'. socat-1.8.0.0/xiowrite.c:21:60: style:inconclusive: Function 'xiowrite' argument 3 names different: declaration 'bufsiz' definition 'bytes'. [funcArgNamesDifferent] socat-1.8.0.0/xio.h:517:68: note: Function 'xiowrite' argument 3 names different: declaration 'bufsiz' definition 'bytes'. socat-1.8.0.0/xiowrite.c:21:60: note: Function 'xiowrite' argument 3 names different: declaration 'bufsiz' definition 'bytes'. diff: 2.13.0 socat-1.8.0.0/dalan.c:53:38: error: Subtracting pointers that point to different objects [comparePointers] socat-1.8.0.0/dalan.c:21:15: note: Variable declared here. socat-1.8.0.0/dalan.c:53:27: note: Address of variable taken here. socat-1.8.0.0/dalan.c:20:8: note: Variable declared here. socat-1.8.0.0/dalan.c:53:39: note: Address of variable taken here. socat-1.8.0.0/dalan.c:53:38: note: Subtracting pointers that point to different objects 2.13.0 socat-1.8.0.0/dalan.c:54:30: error: Subtracting pointers that point to different objects [comparePointers] socat-1.8.0.0/dalan.c:27:8: note: Variable declared here. socat-1.8.0.0/dalan.c:54:19: note: Address of variable taken here. socat-1.8.0.0/dalan.c:26:8: note: Variable declared here. socat-1.8.0.0/dalan.c:54:31: note: Address of variable taken here. socat-1.8.0.0/dalan.c:54:30: note: Subtracting pointers that point to different objects head socat-1.8.0.0/error.c:178:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_PID [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/error.c:233:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/error.c:282:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/error.c:475:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/error.c:499:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/fdname.c:113:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/fdname.c:191:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/filan.c:116:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/filan.c:348:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFD [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/filan.c:458:48: style: Parameter 'outfile' can be declared as pointer to const [constParameterPointer] head socat-1.8.0.0/filan.c:499:26: style: Parameter 'outfile' can be declared as pointer to const [constParameterPointer] head socat-1.8.0.0/filan_main.c:250:93: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FD_SETSIZE [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/procan.c:114:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/procan.c:218:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RLIMIT_CPU [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/sycls.c:547:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/sycls.c:568:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/sycls.c:603:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/sycls.c:621:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/sycls.c:639:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/sycls.c:703:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/sycls.c:722:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/sycls.c:868:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/sycls.c:957:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/sysutils.c:1048:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/sysutils.c:1116:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/sysutils.c:365:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/sysutils.c:613:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HOST_NOT_FOUND [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/sysutils.c:639:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable revents [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/sysutils.c:802:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioclose.c:126:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioinitialize.c:167:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable END_CLOSE [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioinitialize.c:225:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioopen.c:453:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioopen.c:551:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioopen.c:713:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioopts.c:2951:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioopts.c:3375:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioopts.c:3407:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioopts.c:3441:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioopts.c:3458:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioopts.c:3480:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioopts.c:3546:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioopts.c:3702:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioopts.c:3735:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioopts.c:3774:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioopts.c:3800:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioopts.c:4171:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioopts.c:4186:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioopts.c:4226:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_INET [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioread.c:569:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xioshutdown.c:30:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xiosigchld.c:196:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_ERR [valueFlowBailoutIncompleteVar] head socat-1.8.0.0/xiosigchld.c:80:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] DONE