2025-10-16 16:28 ftp://ftp.de.debian.org/debian/pool/main/f/fence-agents/fence-agents_4.16.0.orig.tar.gz 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 -j1 platform: Linux-6.8.0-85-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 7828eb5 (2025-10-15 23:40:19 +0200) count: 342 340 elapsed-time: 4.0 4.1 head-timing-info: old-timing-info: head results: fence-agents-4.16.0/agents/kdump/options.h:93:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/options.h:122:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/options.h:135:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/options.h:166:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/options.h:181:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/options.h:198:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/options.h:209:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/options.h:220:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/options.h:231:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/options.h:250:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/version.h:30:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/fence_kdump.c:96:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/fence_kdump.c:123:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_MAXHOST [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/fence_kdump.c:231:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/fence_kdump.c:338:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/fence_kdump.c:372:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/fence_kdump.c:436:82: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/fence_kdump.c:480:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/fence_kdump.c:544:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CONS [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/fence_kdump.c:555:20: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] fence-agents-4.16.0/agents/kdump/fence_kdump.c:555:63: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] fence-agents-4.16.0/agents/kdump/fence_kdump.c:553:16: warning: If memory allocation fails, then there is a possible null pointer dereference: node_list [nullPointerOutOfMemory] fence-agents-4.16.0/agents/kdump/fence_kdump.c:551:35: note: Assuming allocation function fails fence-agents-4.16.0/agents/kdump/fence_kdump.c:551:21: note: Assignment 'node_list=(char*)malloc(strlen(opts.nodename)+1)', assigned value is 0 fence-agents-4.16.0/agents/kdump/fence_kdump.c:553:16: note: Null pointer dereference fence-agents-4.16.0/agents/kdump/fence_kdump.c:148:21: style: Variable 'hints.ai_family' is reassigned a value before the old one has been used. [redundantAssignment] fence-agents-4.16.0/agents/kdump/fence_kdump.c:143:21: note: hints.ai_family is assigned fence-agents-4.16.0/agents/kdump/fence_kdump.c:148:21: note: hints.ai_family is overwritten fence-agents-4.16.0/agents/kdump/fence_kdump.c:424:19: style: Variable 'options' can be declared as const array [constVariable] fence-agents-4.16.0/agents/kdump/fence_kdump.c:477:11: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/kdump/fence_kdump.c:533:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/kdump/list.h:206:20: style: Variable 'next' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/kdump/list.h:306:55: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/kdump/fence_kdump_send.c:62:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/fence_kdump_send.c:75:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/fence_kdump_send.c:107:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/fence_kdump_send.c:170:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/fence_kdump_send.c:221:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/kdump/fence_kdump_send.c:56:53: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/kdump/fence_kdump_send.c:159:19: style: Variable 'options' can be declared as const array [constVariable] fence-agents-4.16.0/agents/virt/client/main.c:60:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_MULTICAST [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/client/mcast.c:75:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/client/mcast.c:164:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RESP_HOSTLIST [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/client/mcast.c:192:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_INET [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/client/mcast.c:271:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_KEY_LEN [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/client/mcast.c:324:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] fence-agents-4.16.0/agents/virt/client/mcast.c:355:4: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] fence-agents-4.16.0/agents/virt/client/mcast.c:174:35: style: Parameter 'ipl' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/client/mcast.c:182:19: style: Variable 'tgt' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/client/options.c:448:34: error: There is an unknown macro here somewhere. Configuration is required. If IPV4_MCAST_DEFAULT is a macro then please configure it. [unknownMacro] fence-agents-4.16.0/agents/virt/client/serial.c:40:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable B9600 [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/client/serial.c:60:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CS8 [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/client/serial.c:117:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable B115200 [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/client/serial.c:163:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCMGET [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/client/serial.c:246:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_INET [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/client/serial.c:175:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] fence-agents-4.16.0/agents/virt/client/serial.c:302:6: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] fence-agents-4.16.0/agents/virt/client/serial.c:288:8: note: ret is assigned fence-agents-4.16.0/agents/virt/client/serial.c:302:6: note: ret is overwritten fence-agents-4.16.0/agents/virt/client/serial.c:114:17: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/client/serial.c:114:29: style: Parameter 'cspeed' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/client/serial.c:114:43: style: Parameter 'cparam' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/client/serial.c:186:68: style: Parameter 'tout' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/client/serial.c:188:8: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/client/serial.c:196:8: style: Variable 'tout' is assigned a value that is never used. [unreadVariable] fence-agents-4.16.0/agents/virt/client/tcp.c:83:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RESP_HOSTLIST [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/client/tcp.c:94:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_KEY_LEN [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/client/vsock.c:84:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RESP_HOSTLIST [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/client/vsock.c:95:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_KEY_LEN [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/bcast.c:44:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_INET [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/bcast.c:96:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/bcast.c:185:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_INET6 [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/bcast.c:263:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in6 [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/bcast.c:56:9: warning: Either the condition 'sock<0' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] fence-agents-4.16.0/agents/virt/common/bcast.c:54:11: note: Assuming that condition 'sock<0' is not redundant fence-agents-4.16.0/agents/virt/common/bcast.c:56:9: note: Invalid argument fence-agents-4.16.0/agents/virt/common/bcast.c:204:9: warning: Either the condition 'sock<0' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] fence-agents-4.16.0/agents/virt/common/bcast.c:202:11: note: Assuming that condition 'sock<0' is not redundant fence-agents-4.16.0/agents/virt/common/bcast.c:204:9: note: Invalid argument fence-agents-4.16.0/agents/virt/common/bcast.c:87:26: style: Parameter 'send_addr' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/common/bcast.c:254:20: style: Parameter 'send_addr' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/common/bcast.c:57:8: style: Variable 'sock' is assigned a value that is never used. [unreadVariable] fence-agents-4.16.0/agents/virt/common/bcast.c:112:17: style: Variable 'src.sin_family' is assigned a value that is never used. [unreadVariable] fence-agents-4.16.0/agents/virt/common/bcast.c:113:15: style: Variable 'src.sin_port' is assigned a value that is never used. [unreadVariable] fence-agents-4.16.0/agents/virt/common/bcast.c:205:8: style: Variable 'sock' is assigned a value that is never used. [unreadVariable] fence-agents-4.16.0/agents/virt/common/bcast.c:283:18: style: Variable 'src.sin6_family' is assigned a value that is never used. [unreadVariable] fence-agents-4.16.0/agents/virt/common/bcast.c:284:16: style: Variable 'src.sin6_port' is assigned a value that is never used. [unreadVariable] fence-agents-4.16.0/agents/virt/common/fdops.c:51:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/fdops.c:88:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/fdops.c:162:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/fdops.c:73:8: style: Variable 'tmp_buf' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/common/fdops.c:71:39: style: Variable 'rv' is assigned a value that is never used. [unreadVariable] fence-agents-4.16.0/agents/virt/common/fdops.c:144:39: style: Variable 'rv' is assigned a value that is never used. [unreadVariable] fence-agents-4.16.0/agents/virt/common/ip_lookup.c:51:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_NETLINK [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/ip_lookup.c:72:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_INET6 [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/ip_lookup.c:150:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nlmsgerr [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/ip_lookup.c:238:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ipa_entries [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/ip_lookup.c:251:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_INET6 [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/ip_lookup.c:295:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_INET6 [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/ip_lookup.c:220:11: style: Variable 'ipa' is reassigned a value before the old one has been used. [redundantAssignment] fence-agents-4.16.0/agents/virt/common/ip_lookup.c:219:6: note: ipa is assigned fence-agents-4.16.0/agents/virt/common/ip_lookup.c:220:11: note: ipa is overwritten fence-agents-4.16.0/agents/virt/common/ip_lookup.c:108:19: style: Variable 'err' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/common/ip_lookup.c:216:13: style: Variable 'ipa' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/common/ip_lookup.c:279:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/common/log.c:62:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETIMEDOUT [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/log.c:105:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/mcast.c:63:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_INET [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/mcast.c:132:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/mcast.c:224:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_INET6 [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/mcast.c:302:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in6 [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/mcast.c:123:20: style: Parameter 'send_addr' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/common/mcast.c:293:20: style: Parameter 'send_addr' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/common/mcast.c:76:8: style: Variable 'sock' is assigned a value that is never used. [unreadVariable] fence-agents-4.16.0/agents/virt/common/mcast.c:244:8: style: Variable 'sock' is assigned a value that is never used. [unreadVariable] fence-agents-4.16.0/agents/virt/common/simple_auth.c:52:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA512_LENGTH [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/simple_auth.c:108:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA512_LENGTH [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/simple_auth.c:171:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/simple_auth.c:213:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_HASH_LENGTH [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/simple_auth.c:317:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_HASH_LENGTH [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/simple_auth.c:391:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/simple_auth.c:410:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/simple_auth.c:432:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/simple_auth.c:440:9: style: Redundant initialization for 'remain'. The initialized value is overwritten before it is read. [redundantInitialization] fence-agents-4.16.0/agents/virt/common/simple_auth.c:427:20: note: remain is initialized fence-agents-4.16.0/agents/virt/common/simple_auth.c:440:9: note: remain is overwritten fence-agents-4.16.0/agents/virt/common/simple_auth.c:40:27: style: Parameter 'hash' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/common/tcp.c:56:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFD [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/tcp.c:78:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/tcp.c:145:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/tcp.c:211:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/tcp.c:248:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/tcp.c:297:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/tcp.c:366:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/common/tcp.c:206:31: style: Parameter 'in6_addr' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/common/tcp.c:243:30: style: Parameter 'in_addr' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/common/tcp.c:279:37: style: Parameter 'dest' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/config/simpleconfig.c:114:7: style: Condition 'n' is always true [knownConditionTrueFalse] fence-agents-4.16.0/agents/virt/config/simpleconfig.c:18:27: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/config/simpleconfig.c:170:16: style: Variable 'v' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/config/simpleconfig.c:171:8: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/config/simpleconfig.c:174:8: style: Variable 'id' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/server/config.c:30:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/config.c:56:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/config.c:223:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/config.c:368:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/config.c:609:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/config.c:651:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/config.c:127:3: warning:inconclusive: The buffer 'val' may not be null-terminated after the call to strncpy(). [terminateStrncpy] fence-agents-4.16.0/agents/virt/server/config.c:153:3: warning:inconclusive: The buffer 'val' may not be null-terminated after the call to strncpy(). [terminateStrncpy] fence-agents-4.16.0/agents/virt/server/config.c:216:3: warning:inconclusive: The buffer 'val' may not be null-terminated after the call to strncpy(). [terminateStrncpy] fence-agents-4.16.0/agents/virt/server/config.c:310:3: warning:inconclusive: The buffer 'val' may not be null-terminated after the call to strncpy(). [terminateStrncpy] fence-agents-4.16.0/agents/virt/server/config.c:361:3: warning:inconclusive: The buffer 'val' may not be null-terminated after the call to strncpy(). [terminateStrncpy] fence-agents-4.16.0/agents/virt/server/config.c:415:3: warning:inconclusive: The buffer 'val' may not be null-terminated after the call to strncpy(). [terminateStrncpy] fence-agents-4.16.0/agents/virt/server/config.c:462:3: warning:inconclusive: The buffer 'val' may not be null-terminated after the call to strncpy(). [terminateStrncpy] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:82:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:108:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DOMAIN0NAME [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:137:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:145:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:153:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:173:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nodeid [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:225:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:386:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:396:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:406:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:417:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:426:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:437:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:450:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:598:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:636:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLUGIN_VERSION_BACKEND [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:397:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:407:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:438:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fence-agents-4.16.0/agents/virt/server/cpg-virt.c:215:17: style: Variable 'reply_code' is assigned a value that is never used. [unreadVariable] fence-agents-4.16.0/agents/virt/server/cpg.c:163:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nodeid [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg.c:221:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CPG_TYPE_AGREED [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg.c:264:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CPG_TYPE_AGREED [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg.c:294:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CPG_TYPE_AGREED [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg.c:341:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CS_DISPATCH_BLOCKING [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg.c:357:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/cpg.c:66:23: style:inconclusive: Function 'cpg_get_ids' argument 1 names different: declaration 'me' definition 'my_id'. [funcArgNamesDifferent] fence-agents-4.16.0/agents/virt/server/cpg.h:21:27: note: Function 'cpg_get_ids' argument 1 names different: declaration 'me' definition 'my_id'. fence-agents-4.16.0/agents/virt/server/cpg.c:66:23: note: Function 'cpg_get_ids' argument 1 names different: declaration 'me' definition 'my_id'. fence-agents-4.16.0/agents/virt/server/cpg.c:66:40: style:inconclusive: Function 'cpg_get_ids' argument 2 names different: declaration 'high' definition 'high_id'. [funcArgNamesDifferent] fence-agents-4.16.0/agents/virt/server/cpg.h:21:41: note: Function 'cpg_get_ids' argument 2 names different: declaration 'high' definition 'high_id'. fence-agents-4.16.0/agents/virt/server/cpg.c:66:40: note: Function 'cpg_get_ids' argument 2 names different: declaration 'high' definition 'high_id'. fence-agents-4.16.0/agents/virt/server/cpg.c:185:20: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/server/cpg.c:231:33: style: Parameter 'vs' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/server/cpg.c:275:22: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/server/cpg.c:100:23: error: Uninitialized variable: n->seqno [uninitvar] fence-agents-4.16.0/agents/virt/server/cpg.c:316:11: error: Uninitialized variable: n->seqno [uninitvar] fence-agents-4.16.0/agents/virt/server/cpg.c:42:11: style: struct member 'wire_msg::pad' is never used. [unusedStructMember] fence-agents-4.16.0/agents/virt/server/daemon_init.c:51:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/daemon_init.c:124:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/daemon_init.c:140:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/daemon_init.c:180:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/daemon_init.c:190:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/daemon_init.c:105:52: style:inconclusive: Function 'check_process_running' argument 2 names different: declaration 'pid_file' definition 'filename'. [funcArgNamesDifferent] fence-agents-4.16.0/agents/virt/server/daemon_init.c:37:56: note: Function 'check_process_running' argument 2 names different: declaration 'pid_file' definition 'filename'. fence-agents-4.16.0/agents/virt/server/daemon_init.c:105:52: note: Function 'check_process_running' argument 2 names different: declaration 'pid_file' definition 'filename'. fence-agents-4.16.0/agents/virt/server/history.c:18:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/history.c:78:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/libvirt.c:178:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/libvirt.c:189:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/libvirt.c:202:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/libvirt.c:213:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/libvirt.c:226:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/libvirt.c:239:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/libvirt.c:254:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/libvirt.c:285:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/libvirt.c:318:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/libvirt.c:352:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLUGIN_VERSION_BACKEND [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/libvirt.c:211:25: style: Parameter 'priv' can be declared as pointer to const. However it seems that 'libvirt_devstatus' is a callback function, if 'priv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fence-agents-4.16.0/agents/virt/server/libvirt.c:337:15: note: You might need to cast the function pointer here fence-agents-4.16.0/agents/virt/server/libvirt.c:211:25: note: Parameter 'priv' can be declared as pointer to const fence-agents-4.16.0/agents/virt/server/main.c:55:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYSCONFDIR [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/main.c:204:10: warning: If memory allocation fails, then there is a possible null pointer dereference: pid_file [nullPointerOutOfMemory] fence-agents-4.16.0/agents/virt/server/main.c:203:20: note: Assuming allocation function fails fence-agents-4.16.0/agents/virt/server/main.c:203:20: note: Assignment 'pid_file=malloc(PATH_MAX)', assigned value is 0 fence-agents-4.16.0/agents/virt/server/main.c:204:10: note: Null pointer dereference fence-agents-4.16.0/agents/virt/server/main.c:205:12: warning: If memory allocation fails, then there is a possible null pointer dereference: pid_file [nullPointerOutOfMemory] fence-agents-4.16.0/agents/virt/server/main.c:203:20: note: Assuming allocation function fails fence-agents-4.16.0/agents/virt/server/main.c:203:20: note: Assignment 'pid_file=malloc(PATH_MAX)', assigned value is 0 fence-agents-4.16.0/agents/virt/server/main.c:205:12: note: Null pointer dereference fence-agents-4.16.0/agents/virt/server/mcast.c:141:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_INET [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/mcast.c:218:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RESP_HOSTLIST [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/mcast.c:257:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/mcast.c:351:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/mcast.c:420:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_KEY_FILE [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/mcast.c:527:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECSuccess [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/mcast.c:591:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/mcast.c:615:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLUGIN_VERSION_LISTENER [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/mcast.c:497:18: style: Checking if unsigned expression 'args->port' is less than zero. [unsignedLessThanZero] fence-agents-4.16.0/agents/virt/server/mcast.c:115:15: style: Variable 'old' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/server/mcast.c:115:25: style: Variable 'current' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/server/mcast.c:82:15: style: struct member '_mcast_options::flags' is never used. [unusedStructMember] fence-agents-4.16.0/agents/virt/server/plugin.c:60:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/plugin.c:83:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/plugin.c:108:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLUGIN_BACKEND [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/plugin.c:139:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLUGIN_BACKEND [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/plugin.c:156:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLUGIN_LISTENER [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/plugin.c:171:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable backend_plugin_t [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/plugin.c:215:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable listener_plugin_t [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/plugin.c:269:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/plugin.c:355:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/plugin.c:412:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/plugin.c:109:8: style: Condition '!y' is always true [knownConditionTrueFalse] fence-agents-4.16.0/agents/virt/server/plugin.c:106:6: note: Assignment 'y=0', assigned value is 0 fence-agents-4.16.0/agents/virt/server/plugin.c:109:8: note: Condition '!y' is always true fence-agents-4.16.0/agents/virt/server/plugin.c:121:8: style: Condition '!y' is always true [knownConditionTrueFalse] fence-agents-4.16.0/agents/virt/server/plugin.c:118:6: note: Assignment 'y=0', assigned value is 0 fence-agents-4.16.0/agents/virt/server/plugin.c:121:8: note: Condition '!y' is always true fence-agents-4.16.0/agents/virt/server/plugin.c:118:4: style: Variable 'y' is reassigned a value before the old one has been used. [redundantAssignment] fence-agents-4.16.0/agents/virt/server/plugin.c:110:7: note: y is assigned fence-agents-4.16.0/agents/virt/server/plugin.c:118:4: note: y is overwritten fence-agents-4.16.0/agents/virt/server/plugin.c:335:17: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/server/plugin.c:108:10: error: Uninitialized variable: p->type [uninitvar] fence-agents-4.16.0/agents/virt/server/plugin.c:139:10: error: Uninitialized variable: p->type [uninitvar] fence-agents-4.16.0/agents/virt/server/plugin.c:156:10: error: Uninitialized variable: p->type [uninitvar] fence-agents-4.16.0/agents/virt/server/plugin.c:301:14: error: Uninitialized variable: p->handle [uninitvar] fence-agents-4.16.0/agents/virt/server/serial.c:147:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SERIAL_MAGIC [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/serial.c:179:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RESP_FAIL [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/serial.c:260:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_DOMAINNAME_LENGTH [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/serial.c:411:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fence_req_t [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/serial.c:427:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/serial.c:452:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLUGIN_VERSION_LISTENER [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/serial.c:100:16: style: Variable 'old' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/server/serial.c:100:26: style: Variable 'current' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/server/static_map.c:62:21: style: Variable 'left' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/server/static_map.c:116:16: style: Variable 'entry_idx' is assigned a value that is never used. [unreadVariable] fence-agents-4.16.0/agents/virt/server/tcp.c:141:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RESP_HOSTLIST [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/tcp.c:171:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/tcp.c:204:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_NUMERICHOST [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/tcp.c:302:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/tcp.c:379:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_KEY_FILE [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/tcp.c:475:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECSuccess [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/tcp.c:544:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/tcp.c:568:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLUGIN_VERSION_LISTENER [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/tcp.c:456:18: style: Checking if unsigned expression 'args->port' is less than zero. [unsignedLessThanZero] fence-agents-4.16.0/agents/virt/server/tcp.c:98:15: style: Variable 'old' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/server/tcp.c:98:25: style: Variable 'current' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/server/tcp.c:179:55: style: Parameter 'ss' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/server/tcp.c:66:15: style: struct member '_tcp_options::flags' is never used. [unusedStructMember] fence-agents-4.16.0/agents/virt/server/uuid-test.c:19:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uuid_t [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/virt-serial.c:132:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/virt-serial.c:206:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/virt-serial.c:306:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIR_DOMAIN_EVENT_STARTED [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/virt-serial.c:352:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/virt-serial.c:400:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CLOEXEC [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/virt-serial.c:144:15: style: Variable 'devices' is reassigned a value before the old one has been used. [redundantAssignment] fence-agents-4.16.0/agents/virt/server/virt-serial.c:143:10: note: devices is assigned fence-agents-4.16.0/agents/virt/server/virt-serial.c:144:15: note: devices is overwritten fence-agents-4.16.0/agents/virt/server/virt-serial.c:50:8: style: Variable 'last_slash' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/server/virt-serial.c:278:39: style: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const. However it seems that 'connectClose' is a callback function, if 'ATTRIBUTE_UNUSED' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fence-agents-4.16.0/agents/virt/server/virt-serial.c:350:41: note: You might need to cast the function pointer here fence-agents-4.16.0/agents/virt/server/virt-serial.c:278:39: note: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const fence-agents-4.16.0/agents/virt/server/virt-serial.c:304:21: style: Variable 'args' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/server/virt-sockets.c:40:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/virt-sockets.c:104:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_LOCAL [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/virt-sockets.c:161:27: warning:inconclusive: Possible null pointer dereference: node [nullPointer] fence-agents-4.16.0/agents/virt/server/virt-sockets.c:155:29: note: Assignment 'node=NULL', assigned value is 0 fence-agents-4.16.0/agents/virt/server/virt-sockets.c:161:27: note: Null pointer dereference fence-agents-4.16.0/agents/virt/server/virt-sockets.c:191:10: warning:inconclusive: Possible null pointer dereference: node [nullPointer] fence-agents-4.16.0/agents/virt/server/virt-sockets.c:186:29: note: Assignment 'node=NULL', assigned value is 0 fence-agents-4.16.0/agents/virt/server/virt-sockets.c:191:10: note: Null pointer dereference fence-agents-4.16.0/agents/virt/server/virt-sockets.c:192:7: warning:inconclusive: Possible null pointer dereference: node [nullPointer] fence-agents-4.16.0/agents/virt/server/virt-sockets.c:186:29: note: Assignment 'node=NULL', assigned value is 0 fence-agents-4.16.0/agents/virt/server/virt-sockets.c:192:7: note: Null pointer dereference fence-agents-4.16.0/agents/virt/server/virt-sockets.c:212:7: warning:inconclusive: Possible null pointer dereference: node [nullPointer] fence-agents-4.16.0/agents/virt/server/virt-sockets.c:207:29: note: Assignment 'node=NULL', assigned value is 0 fence-agents-4.16.0/agents/virt/server/virt-sockets.c:212:7: note: Null pointer dereference fence-agents-4.16.0/agents/virt/server/virt-sockets.c:184:27: style:inconclusive: Function 'domain_sock_fdset' argument 1 names different: declaration 'set' definition 'fds'. [funcArgNamesDifferent] fence-agents-4.16.0/agents/virt/server/serial.h:9:31: note: Function 'domain_sock_fdset' argument 1 names different: declaration 'set' definition 'fds'. fence-agents-4.16.0/agents/virt/server/virt-sockets.c:184:27: note: Function 'domain_sock_fdset' argument 1 names different: declaration 'set' definition 'fds'. fence-agents-4.16.0/agents/virt/server/virt-sockets.c:30:37: style: Parameter 'dest' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/server/virt.c:66:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/virt.c:350:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIR_DOMAIN_SHUTOFF [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/virt.c:374:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable virDomainLookupByUUIDString [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/virt.c:436:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable virDomainLookupByUUIDString [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/virt.c:493:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable virDomainLookupByUUIDString [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/virt.c:531:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable virDomainLookupByUUIDString [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/virt.c:253:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fence-agents-4.16.0/agents/virt/server/virt.c:280:43: style:inconclusive: Function 'vl_find_uuid' argument 2 names different: declaration 'name' definition 'uuid'. [funcArgNamesDifferent] fence-agents-4.16.0/agents/virt/server/virt.h:51:57: note: Function 'vl_find_uuid' argument 2 names different: declaration 'name' definition 'uuid'. fence-agents-4.16.0/agents/virt/server/virt.c:280:43: note: Function 'vl_find_uuid' argument 2 names different: declaration 'name' definition 'uuid'. fence-agents-4.16.0/agents/virt/server/virt.c:40:16: style: Variable 'left' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/server/virt.c:41:9: style: Variable 'right' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/server/virt.c:101:10: style: Variable 'd_name' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/server/virt.c:145:40: style: Parameter 'vm' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/server/virt.c:240:23: style: Parameter 'vl' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/virt/server/vsock.c:99:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/vsock.c:141:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/vsock.c:171:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RESP_HOSTLIST [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/vsock.c:210:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/vsock.c:317:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/vsock.c:394:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_KEY_FILE [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/vsock.c:460:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECSuccess [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/vsock.c:535:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/vsock.c:558:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLUGIN_VERSION_LISTENER [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/virt/server/vsock.c:442:18: style: Checking if unsigned expression 'args->port' is less than zero. [unsignedLessThanZero] fence-agents-4.16.0/agents/virt/server/vsock.c:116:15: style: Variable 'old' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/server/vsock.c:116:25: style: Variable 'current' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/virt/server/vsock.c:60:6: style: struct member '_vsock_options::cid' is never used. [unusedStructMember] fence-agents-4.16.0/agents/virt/server/vsock.c:64:15: style: struct member '_vsock_options::flags' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvm.c:1050:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CONS [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:91:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SO_REUSEADDR [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:185:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:288:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:383:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:458:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:515:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:566:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:613:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:666:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:754:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:821:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:905:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:935:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:960:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CONS [valueFlowBailoutIncompleteVar] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:292:46: style:inconclusive: Boolean expression 'outPlist->hdr.rc==200' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:293:51: style:inconclusive: Boolean expression 'outPlist->hdr.reason==12' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:387:46: style:inconclusive: Boolean expression 'outPlist->hdr.rc==200' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:114:2: error: Memory leak: ai [memleak] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:559:3: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:557:17: note: Assuming allocation function fails fence-agents-4.16.0/agents/zvm/fence_zvmip.c:557:17: note: Assignment '*rsp=malloc(*lRsp+sizeof(out->outLen))', assigned value is 0 fence-agents-4.16.0/agents/zvm/fence_zvmip.c:558:7: note: out is assigned '*rsp' here. fence-agents-4.16.0/agents/zvm/fence_zvmip.c:559:3: note: Null pointer dereference fence-agents-4.16.0/agents/zvm/fence_zvmip.c:104:12: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:102:7: note: rc is assigned fence-agents-4.16.0/agents/zvm/fence_zvmip.c:104:12: note: rc is overwritten fence-agents-4.16.0/agents/zvm/fence_zvmip.c:492:41: style: Parameter 'req' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:587:31: style: Parameter 'zvm' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:607:5: style: Variable 'inParm' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:608:20: style: Variable 'outHdr' can be declared as pointer to const [constVariablePointer] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:925:26: style: Parameter 'zvm' can be declared as pointer to const [constParameterPointer] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:145:20: style: struct member '_outPlist::hdr' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:146:11: style: struct member '_outPlist::nActive' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:147:11: style: struct member '_outPlist::nInActive' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:148:11: style: struct member '_outPlist::lFail' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:149:8: style: struct member '_outPlist::failArray' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:244:20: style: struct member '_outPlist::hdr' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:245:11: style: struct member '_outPlist::nActive' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:246:11: style: struct member '_outPlist::nInActive' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:247:11: style: struct member '_outPlist::lFail' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:248:8: style: struct member '_outPlist::failArray' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:343:20: style: struct member '_outPlist::hdr' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:344:11: style: struct member '_outPlist::nActive' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:345:11: style: struct member '_outPlist::nInActive' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:346:11: style: struct member '_outPlist::lFail' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:347:8: style: struct member '_outPlist::failArray' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:430:11: style: struct member '_outPlist::lNames' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:431:8: style: struct member '_outPlist::nameArray' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:604:11: style: struct member '_inParm::lPlist' is never used. [unusedStructMember] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:535:8: style: Variable 'lRem' is assigned a value that is never used. [unreadVariable] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:537:14: style: Variable 'pRecv' is assigned a value that is never used. [unreadVariable] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:563:10: style: Variable 'lRem' is assigned a value that is never used. [unreadVariable] fence-agents-4.16.0/agents/zvm/fence_zvmip.c:564:11: style: Variable 'pRecv' is assigned a value that is never used. [unreadVariable] diff: head fence-agents-4.16.0/agents/virt/common/ip_lookup.c:216:13: style: Variable 'ipa' can be declared as pointer to const [constVariablePointer] head fence-agents-4.16.0/agents/virt/config/simpleconfig.c:170:16: style: Variable 'v' can be declared as pointer to const [constVariablePointer] DONE