2025-05-10 02:27 ftp://ftp.de.debian.org/debian/pool/main/d/dnsmasq/dnsmasq_2.91.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=lua --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: b3c7f00 (2025-05-09 17:59:20 +0200) count: 523 516 elapsed-time: 8.4 8.1 head-timing-info: old-timing-info: head results: dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:146:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:87:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:118:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_PEEK [valueFlowBailoutIncompleteVar] dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:192:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_NETLINK [valueFlowBailoutIncompleteVar] dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:271:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:188:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:257:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:294:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:339:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOL_SOCKET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:418:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flag [valueFlowBailoutIncompleteVar] dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:72:69: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:99:24: style: Variable 'overload' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:127:18: style: Variable 'p' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:63:23: style: struct member 'dhcp_packet::hops' is never used. [unusedStructMember] dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:64:7: style: struct member 'dhcp_packet::xid' is never used. [unusedStructMember] dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:65:7: style: struct member 'dhcp_packet::secs' is never used. [unusedStructMember] dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:65:13: style: struct member 'dhcp_packet::flags' is never used. [unusedStructMember] dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:67:6: style: struct member 'dhcp_packet::chaddr' is never used. [unusedStructMember] dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:151:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:166:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:175:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:215:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:219:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:501:4: warning: %hhx in format string (no. 1) requires 'unsigned char' but the argument type is 'char'. [invalidPrintfArgType_uint] dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:149:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:327:65: style: Parameter 'packet' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:359:23: style: Variable 'recv_size' is assigned a value that is never used. [unreadVariable] dnsmasq-2.91/src/arp.c:53:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/arp.c:130:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/arp.c:38:54: style: Parameter 'mac' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:240:41: style: Local variable 'addr' shadows outer variable [shadowVariable] dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:183:22: note: Shadowed declaration dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:240:41: note: Shadow variable dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:67:23: style: struct member 'dhcp_packet::hops' is never used. [unusedStructMember] dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:68:7: style: struct member 'dhcp_packet::xid' is never used. [unusedStructMember] dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:69:7: style: struct member 'dhcp_packet::secs' is never used. [unusedStructMember] dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:69:13: style: struct member 'dhcp_packet::flags' is never used. [unusedStructMember] dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:71:31: style: struct member 'dhcp_packet::sname' is never used. [unusedStructMember] dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:71:42: style: struct member 'dhcp_packet::file' is never used. [unusedStructMember] dnsmasq-2.91/src/auth.c:441:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/blockdata.c:55:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/auth.c:227:11: style: Local variable 'p' shadows outer variable [shadowVariable] dnsmasq-2.91/src/auth.c:103:18: note: Shadowed declaration dnsmasq-2.91/src/auth.c:227:11: note: Shadow variable dnsmasq-2.91/src/auth.c:602:18: style: Local variable 'a' shadows outer variable [shadowVariable] dnsmasq-2.91/src/auth.c:117:17: note: Shadowed declaration dnsmasq-2.91/src/auth.c:602:18: note: Shadow variable dnsmasq-2.91/src/auth.c:603:14: style: Local variable 'p' shadows outer variable [shadowVariable] dnsmasq-2.91/src/auth.c:103:18: note: Shadowed declaration dnsmasq-2.91/src/auth.c:603:14: note: Shadow variable dnsmasq-2.91/src/auth.c:616:14: style: Local variable 'p' shadows outer variable [shadowVariable] dnsmasq-2.91/src/auth.c:103:18: note: Shadowed declaration dnsmasq-2.91/src/auth.c:616:14: note: Shadow variable dnsmasq-2.91/src/auth.c:72:31: style: Parameter 'zone' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/auth.c:143:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/auth.c:144:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/auth.c:537:9: style: Variable 'test' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/cache.c:694:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/cache.c:1240:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/cache.c:1263:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/cache.c:1291:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/cache.c:1493:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/cache.c:1557:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DAEMON [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/cache.c:1586:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in_addr [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/cache.c:1935:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/cache.c:1982:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/cache.c:2223:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp-common.c:46:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_PEEK [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp-common.c:209:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DAEMON [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp-common.c:286:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DAEMON [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp-common.c:464:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp-common.c:789:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp-common.c:810:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp-common.c:829:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp-common.c:958:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp-common.c:1044:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET6_ADDRSTRLEN [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp.c:91:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp.c:229:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIOCGIFFLAGS [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp.c:541:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp.c:880:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETHER_ADDR_LEN [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp.c:1118:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp-common.c:1048:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] dnsmasq-2.91/src/dhcp-common.c:1059:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] dnsmasq-2.91/src/dhcp-common.c:443:53: style:inconclusive: Function 'find_config' argument 9 names different: declaration 'filter' definition 'tags'. [funcArgNamesDifferent] dnsmasq-2.91/src/dnsmasq.h:1812:24: note: Function 'find_config' argument 9 names different: declaration 'filter' definition 'tags'. dnsmasq-2.91/src/dhcp-common.c:443:53: note: Function 'find_config' argument 9 names different: declaration 'filter' definition 'tags'. dnsmasq-2.91/src/dhcp-common.c:188:23: style: Local variable 'tmp' shadows outer variable [shadowVariable] dnsmasq-2.91/src/dhcp-common.c:154:20: note: Shadowed declaration dnsmasq-2.91/src/dhcp-common.c:188:23: note: Shadow variable dnsmasq-2.91/src/dhcp-common.c:134:29: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/dhcp-common.c:251:28: style: Parameter 'hostname' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/dhcp-common.c:320:63: style: Parameter 'hwaddr' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/dhcp-common.c:371:26: style: Parameter 'clid' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/dhcp-common.c:373:30: style: Parameter 'hostname' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/dhcp-common.c:462:32: style: Variable 'conf_tmp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/dhcp-common.c:781:37: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/dhcp-common.c:951:9: style: Variable 'start' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/dhcp-common.c:952:9: style: Variable 'end' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/dhcp.c:83:14: style: Condition 'rc!=-1' is always true [knownConditionTrueFalse] dnsmasq-2.91/src/dhcp.c:75:16: note: Assignment 'rc=0', assigned value is 0 dnsmasq-2.91/src/dhcp.c:83:14: note: Condition 'rc!=-1' is always true dnsmasq-2.91/src/dhcp.c:137:22: style: Variable 'relay' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/dhcp.c:775:46: style: Parameter 'hwaddr' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/dhcp.c:840:27: style: Variable 'r' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/dhcp.c:978:30: style: Variable 'conf_addr' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/dhcp.c:1051:13: style: Variable 'dot' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/dhcp.c:1056:10: style: Variable 'd2' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/dhcp.c:1172:60: style: Parameter 'mess' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/dhcp.c:1172:72: style: Parameter 'arrival_interface' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/dhcp.c:228:49: error: Uninitialized variable: ifr [uninitvar] dnsmasq-2.91/src/dhcp.c:1131:21: error: Uninitialized variable: ifr [uninitvar] dnsmasq-2.91/src/dhcp.c:245:20: style: Variable 'rcvd_iface_index' is assigned a value that is never used. [unreadVariable] dnsmasq-2.91/src/dhcp.c:143:19: style: Unused variable: cmptr [unusedVariable] dnsmasq-2.91/src/cache.c:1781:7: portability: %d in format string (no. 1) requires 'int' but the argument type is 'u32 {aka unsigned int}'. [invalidPrintfArgType_sint] dnsmasq-2.91/src/cache.c:1785:7: portability: %d in format string (no. 1) requires 'int' but the argument type is 'u32 {aka unsigned int}'. [invalidPrintfArgType_sint] dnsmasq-2.91/src/cache.c:236:35: warning: Possible null pointer dereference: name++ [nullPointer] dnsmasq-2.91/src/cache.c:1639:20: note: Calling function 'cache_scan_free', 1st argument 'NULL' value is 0 dnsmasq-2.91/src/cache.c:477:29: note: Calling function 'hash_bucket', 1st argument 'name' value is 0 dnsmasq-2.91/src/cache.c:236:35: note: Null pointer dereference dnsmasq-2.91/src/cache.c:236:35: error: Pointer addition with NULL pointer. [nullPointerArithmetic] dnsmasq-2.91/src/cache.c:1639:20: note: Calling function 'cache_scan_free', 1st argument 'NULL' value is 0 dnsmasq-2.91/src/cache.c:477:29: note: Calling function 'hash_bucket', 1st argument 'name' value is 0 dnsmasq-2.91/src/cache.c:236:35: note: Null pointer addition dnsmasq-2.91/src/cache.c:2223:29: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] dnsmasq-2.91/src/cache.c:143:29: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/cache.c:231:40: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/cache.c:389:51: style: Parameter 'crecp' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/cache.c:404:48: style: Parameter 'crecp' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/cache.c:1106:69: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/cache.c:1283:36: style: Variable 'domain_suffix' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/cache.c:1888:13: style: Variable 't' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/cache.c:2072:29: style: Parameter 'desc' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/cache.c:1973:7: style: Variable 'p' is assigned a value that is never used. [unreadVariable] dnsmasq-2.91/src/dhcp6.c:79:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp6.c:204:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IF_NAMESIZE [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp6.c:306:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ND_NEIGHBOR_SOLICIT [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp6.c:369:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp6.c:620:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_LOCAL [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp6.c:672:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFNAMSIZ [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dhcp6.c:804:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dnsmasq.c:55:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_OPEN_MAX [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dnsmasq.c:1339:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dnsmasq.c:1397:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iov_base [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dnsmasq.c:1435:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dnsmasq.c:1550:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dnsmasq.c:1707:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dnsmasq.c:1799:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dnsmasq.c:1817:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dnsmasq.c:1866:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dnsmasq.c:1947:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dnsmasq.c:2298:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dnsmasq.c:2356:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/domain-match.c:104:25: style:inconclusive: Function 'lookup_domain' argument 1 names different: declaration 'qdomain' definition 'domain'. [funcArgNamesDifferent] dnsmasq-2.91/src/dnsmasq.h:1909:25: note: Function 'lookup_domain' argument 1 names different: declaration 'qdomain' definition 'domain'. dnsmasq-2.91/src/domain-match.c:104:25: note: Function 'lookup_domain' argument 1 names different: declaration 'qdomain' definition 'domain'. dnsmasq-2.91/src/domain-match.c:519:41: style:inconclusive: Function 'order_servers' argument 1 names different: declaration 's' definition 's1'. [funcArgNamesDifferent] dnsmasq-2.91/src/domain-match.c:21:41: note: Function 'order_servers' argument 1 names different: declaration 's' definition 's1'. dnsmasq-2.91/src/domain-match.c:519:41: note: Function 'order_servers' argument 1 names different: declaration 's' definition 's1'. dnsmasq-2.91/src/dhcp6.c:68:14: style: Condition 'rc!=-1' is always true [knownConditionTrueFalse] dnsmasq-2.91/src/dhcp6.c:60:16: note: Assignment 'rc=0', assigned value is 0 dnsmasq-2.91/src/dhcp6.c:68:14: note: Condition 'rc!=-1' is always true dnsmasq-2.91/src/domain-match.c:427:21: style: Variable 'srv' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/domain-match.c:442:21: style: Variable 'srv' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/domain-match.c:499:24: style: Parameter 'qdomain' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/domain-match.c:499:61: style: Parameter 'serv' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/domain-match.c:637:27: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/domain-match.c:638:27: style: Parameter 'source_addr' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/domain-match.c:641:25: style: Parameter 'local_addr' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/dhcp6.c:388:27: style: Local variable 'tmp' shadows outer variable [shadowVariable] dnsmasq-2.91/src/dhcp6.c:348:17: note: Shadowed declaration dnsmasq-2.91/src/dhcp6.c:388:27: note: Shadow variable dnsmasq-2.91/src/dhcp6.c:437:63: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] dnsmasq-2.91/src/dhcp6.c:296:38: style: Parameter 'client' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/dhcp6.c:470:86: style: Parameter 'clid' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/dhcp6.c:627:59: style: Parameter 'mac' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/dhcp6.c:134:47: error: Uninitialized variable: ifr [uninitvar] dnsmasq-2.91/src/domain.c:29:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/domain.c:170:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET6_ADDRSTRLEN [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dump.c:65:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dump.c:120:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_UDP [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dump.c:128:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_ICMP [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dump.c:162:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/dnsmasq.c:477:21: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] dnsmasq-2.91/src/dnsmasq.c:487:38: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] dnsmasq-2.91/src/dnsmasq.c:489:40: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] dnsmasq-2.91/src/dnsmasq.c:498:18: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] dnsmasq-2.91/src/dnsmasq.c:499:7: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] dnsmasq-2.91/src/dnsmasq.c:780:25: style: The comparison 'bad_capabilities != 0' is always false. [knownConditionTrueFalse] dnsmasq-2.91/src/dnsmasq.c:736:30: note: 'bad_capabilities' is assigned value '0' here. dnsmasq-2.91/src/dnsmasq.c:780:25: note: The comparison 'bad_capabilities != 0' is always false. dnsmasq-2.91/src/dnsmasq.c:607:10: style: Local variable 'pid' shadows outer variable [shadowVariable] dnsmasq-2.91/src/dnsmasq.c:29:23: note: Shadowed declaration dnsmasq-2.91/src/dnsmasq.c:607:10: note: Shadow variable dnsmasq-2.91/src/dnsmasq.c:475:22: style: Variable 'scr_pw' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/dnsmasq.c:1433:44: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/dnsmasq.c:1941:17: style: Variable 'a' is assigned a value that is never used. [unreadVariable] dnsmasq-2.91/src/domain.c:25:62: style:inconclusive: Function 'is_name_synthetic' argument 3 names different: declaration 'addr' definition 'addrp'. [funcArgNamesDifferent] dnsmasq-2.91/src/dnsmasq.h:1386:62: note: Function 'is_name_synthetic' argument 3 names different: declaration 'addr' definition 'addrp'. dnsmasq-2.91/src/domain.c:25:62: note: Function 'is_name_synthetic' argument 3 names different: declaration 'addr' definition 'addrp'. dnsmasq-2.91/src/domain.c:58:13: style: Local variable 'c' shadows outer variable [shadowVariable] dnsmasq-2.91/src/domain.c:28:23: note: Shadowed declaration dnsmasq-2.91/src/domain.c:58:13: note: Shadow variable dnsmasq-2.91/src/domain.c:102:13: style: Local variable 'c' shadows outer variable [shadowVariable] dnsmasq-2.91/src/domain.c:28:23: note: Shadowed declaration dnsmasq-2.91/src/domain.c:102:13: note: Shadow variable dnsmasq-2.91/src/edns0.c:335:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/edns0.c:379:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/edns0.c:515:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/helper.c:102:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/helper.c:700:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/helper.c:855:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/helper.c:889:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/helper.c:911:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARPHRD_ETHER [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/helper.c:942:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/forward.c:48:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iov_base [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/forward.c:123:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/forward.c:229:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable frec_src [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/forward.c:727:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/forward.c:1154:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/forward.c:1609:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/forward.c:2074:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/forward.c:2407:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/forward.c:2778:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_DGRAM [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/forward.c:2823:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IF_NAMESIZE [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/forward.c:2888:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sa_family [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/forward.c:3191:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/forward.c:3241:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/edns0.c:42:8: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/edns0.c:43:8: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/edns0.c:68:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/edns0.c:72:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/edns0.c:103:80: style: Parameter 'limit' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/edns0.c:104:30: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/edns0.c:124:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/edns0.c:125:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/edns0.c:135:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/edns0.c:147:4: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/edns0.c:148:4: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/edns0.c:260:36: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/edns0.c:346:9: style: Variable 'addrp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/edns0.c:454:3: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/edns0.c:461:8: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/edns0.c:462:8: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/edns0.c:497:6: style: struct member 'umbrella_opt::magic' is never used. [unusedStructMember] dnsmasq-2.91/src/edns0.c:498:6: style: struct member 'umbrella_opt::version' is never used. [unusedStructMember] dnsmasq-2.91/src/edns0.c:499:6: style: struct member 'umbrella_opt::flags' is never used. [unusedStructMember] dnsmasq-2.91/src/helper.c:863:23: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] dnsmasq-2.91/src/helper.c:186:22: style: Local variable 'buf' shadows outer variable [shadowVariable] dnsmasq-2.91/src/helper.c:76:28: note: Shadowed declaration dnsmasq-2.91/src/helper.c:186:22: note: Shadow variable dnsmasq-2.91/src/helper.c:704:73: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/helper.c:704:85: style: Parameter 'env' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/helper.c:707:9: style: Variable 'val' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/helper.c:777:50: style: Parameter 'lease' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/helper.c:777:63: style: Parameter 'hostname' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/helper.c:849:41: style: Parameter 'client' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/helper.c:849:80: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/helper.c:873:39: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/helper.c:900:43: style: Parameter 'mac' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/helper.c:900:88: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/lease.c:62:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DAEMON [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/lease.c:184:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DAEMON [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/lease.c:246:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/lease.c:258:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/lease.c:471:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/lease.c:511:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/lease.c:984:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DAEMON [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/log.c:87:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/log.c:134:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/log.c:180:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_DGRAM [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/log.c:300:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_USER [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/log.c:448:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLOUT [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/log.c:453:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLOUT [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/log.c:478:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/log.c:124:22: style: Parameter 'log_file' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/log.c:298:9: style: Variable 'func' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/log.c:476:16: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/lease.c:358:19: style: Condition 'next_event==0' is always true [knownConditionTrueFalse] dnsmasq-2.91/src/lease.c:348:16: note: Assignment 'next_event=0', assigned value is 0 dnsmasq-2.91/src/lease.c:358:19: note: Condition 'next_event==0' is always true dnsmasq-2.91/src/lease.c:178:14: warning: If resource allocation fails, then there is a possible null pointer dereference: leasestream [nullPointerOutOfResources] dnsmasq-2.91/src/lease.c:172:49: note: Assuming allocation function fails dnsmasq-2.91/src/lease.c:172:42: note: Assignment 'leasestream=dnsmasq_daemon->lease_stream=fopen(dnsmasq_daemon->lease_file,"a+")', assigned value is 0 dnsmasq-2.91/src/lease.c:178:14: note: Null pointer dereference dnsmasq-2.91/src/lease.c:559:13: warning: Either the condition 'lease==target' is redundant or there is possible null pointer dereference: lease. [nullPointerRedundantCheck] dnsmasq-2.91/src/lease.c:216:15: note: Calling function 'lease_prune', 1st argument 'NULL' value is 0 dnsmasq-2.91/src/lease.c:560:80: note: Assuming that condition 'lease==target' is not redundant dnsmasq-2.91/src/lease.c:559:13: note: Null pointer dereference dnsmasq-2.91/src/lease.c:563:8: warning: Either the condition 'lease==target' is redundant or there is possible null pointer dereference: lease. [nullPointerRedundantCheck] dnsmasq-2.91/src/lease.c:216:15: note: Calling function 'lease_prune', 1st argument 'NULL' value is 0 dnsmasq-2.91/src/lease.c:560:80: note: Assuming that condition 'lease==target' is not redundant dnsmasq-2.91/src/lease.c:563:8: note: Null pointer dereference dnsmasq-2.91/src/lease.c:81:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/lease.c:225:23: style: Variable 'config' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/lease.c:226:9: style: Variable 'name' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/lease.c:553:37: style: Parameter 'target' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/lease.c:583:56: style: Parameter 'hwaddr' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/lease.c:584:21: style: Parameter 'clid' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/lease.c:636:47: style: Parameter 'clid' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/lease.c:671:22: style: Parameter 'clid' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/lease.c:741:57: style: Parameter 'context' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/lease.c:797:53: style: Parameter 'addrp' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/lease.c:954:13: style: Variable 'domain' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/lease.c:978:85: style: Parameter 'domain' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/lease.c:1194:67: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/lease.c:821:11: style: Variable 'len' is assigned a value that is never used. [unreadVariable] dnsmasq-2.91/src/network.c:141:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:195:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IF_NAMESIZE [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:223:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:258:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIOCGIFFLAGS [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:613:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:637:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:705:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:836:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:888:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:906:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:991:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPV6_PKTINFO [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:1096:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_DGRAM [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:1145:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:1206:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:1259:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:1282:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:1291:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:1329:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:1374:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:1468:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:1528:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:1632:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:1737:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/network.c:1746:21: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] dnsmasq-2.91/src/network.c:1752:21: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] dnsmasq-2.91/src/network.c:1564:24: style:inconclusive: Function 'check_servers' argument 1 names different: declaration 'no_loop_call' definition 'no_loop_check'. [funcArgNamesDifferent] dnsmasq-2.91/src/dnsmasq.h:1552:24: note: Function 'check_servers' argument 1 names different: declaration 'no_loop_call' definition 'no_loop_check'. dnsmasq-2.91/src/network.c:1564:24: note: Function 'check_servers' argument 1 names different: declaration 'no_loop_call' definition 'no_loop_check'. dnsmasq-2.91/src/network.c:857:28: style: Local variable 'tmp' shadows outer variable [shadowVariable] dnsmasq-2.91/src/network.c:728:27: note: Shadowed declaration dnsmasq-2.91/src/network.c:857:28: note: Shadow variable dnsmasq-2.91/src/network.c:112:57: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/network.c:190:72: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/network.c:218:60: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/network.c:1168:57: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/network.c:1367:42: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/network.c:195:16: error: Uninitialized variable: ifr [uninitvar] dnsmasq-2.91/src/network.c:257:41: error: Uninitialized variable: ifr [uninitvar] dnsmasq-2.91/src/option.c:763:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/option.c:878:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/option.c:898:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/option.c:997:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/option.c:1099:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/option.c:1131:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IF_NAMESIZE [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/option.c:1217:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IF_NAMESIZE [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/option.c:1478:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/option.c:2276:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable facilitynames [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/option.c:5541:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/option.c:5594:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/option.c:5706:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/option.c:5788:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/option.c:5864:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DAEMON [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/option.c:5899:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/outpacket.c:79:22: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/forward.c:829:8: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] dnsmasq-2.91/src/forward.c:1315:7: warning: Either the condition 'prev' is redundant or there is possible null pointer dereference: arg1. [nullPointerRedundantCheck] dnsmasq-2.91/src/forward.c:1501:12: note: Assuming that condition 'prev' is not redundant dnsmasq-2.91/src/forward.c:1496:32: note: Calling function 'flip_queryname', 3rd argument 'prev' value is 0 dnsmasq-2.91/src/forward.c:1315:7: note: Null pointer dereference dnsmasq-2.91/src/forward.c:3114:61: style:inconclusive: Function 'get_new_frec' argument 2 names different: declaration 'serv' definition 'master'. [funcArgNamesDifferent] dnsmasq-2.91/src/forward.c:19:61: note: Function 'get_new_frec' argument 2 names different: declaration 'serv' definition 'master'. dnsmasq-2.91/src/forward.c:3114:61: note: Function 'get_new_frec' argument 2 names different: declaration 'serv' definition 'master'. dnsmasq-2.91/src/forward.c:179:18: style: Local variable 'rrtype' shadows outer function [shadowFunction] dnsmasq-2.91/src/dnsmasq.h:1342:16: note: Shadowed declaration dnsmasq-2.91/src/forward.c:179:18: note: Shadow variable dnsmasq-2.91/src/forward.c:1146:36: style: Local variable 'rrtype' shadows outer function [shadowFunction] dnsmasq-2.91/src/dnsmasq.h:1342:16: note: Shadowed declaration dnsmasq-2.91/src/forward.c:1146:36: note: Shadow variable dnsmasq-2.91/src/forward.c:1682:19: style: Local variable 'netmask' shadows outer variable [shadowVariable] dnsmasq-2.91/src/forward.c:1572:18: note: Shadowed declaration dnsmasq-2.91/src/forward.c:1682:19: note: Shadow variable dnsmasq-2.91/src/forward.c:2416:19: style: Local variable 'netmask' shadows outer argument [shadowArgument] dnsmasq-2.91/src/forward.c:2353:52: note: Shadowed declaration dnsmasq-2.91/src/forward.c:2416:19: note: Shadow variable dnsmasq-2.91/src/forward.c:33:46: style: Parameter 'source' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/forward.c:149:9: style: Variable 'dots' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/forward.c:1165:3: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/forward.c:1166:3: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/forward.c:1297:57: style: Parameter 'arg2' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/forward.c:1870:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/forward.c:1872:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/forward.c:2040:3: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/forward.c:2041:3: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/forward.c:2157:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/forward.c:2158:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/forward.c:2526:5: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/forward.c:2568:19: style: Variable 'master' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/forward.c:3224:6: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/forward.c:3225:6: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/forward.c:3263:33: style: Parameter 'server' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/forward.c:288:21: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 285. [shiftTooManyBitsSigned] dnsmasq-2.91/src/forward.c:285:17: note: Assuming that condition 'i>=(sizeof(unsigned int)*8)' is not redundant dnsmasq-2.91/src/forward.c:288:21: note: Shift dnsmasq-2.91/src/forward.c:1768:46: error: Uninitialized variable: ifr [uninitvar] dnsmasq-2.91/src/poll.c:60:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/poll.c:85:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/poll.c:95:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/forward.c:45:10: style: union member 'Anonymous10::control6' is never used. [unusedStructMember] dnsmasq-2.91/src/forward.c:1596:10: style: union member 'Anonymous11::control6' is never used. [unusedStructMember] dnsmasq-2.91/src/forward.c:817:17: style: Variable 'cache_secure' is assigned a value that is never used. [unreadVariable] dnsmasq-2.91/src/forward.c:829:21: style: Variable 'cache_secure' is assigned a value that is never used. [unreadVariable] dnsmasq-2.91/src/forward.c:2031:18: style: Unused variable: tv [unusedVariable] dnsmasq-2.91/src/forward.c:2838:12: style: Variable 'j' is assigned a value that is never used. [unreadVariable] dnsmasq-2.91/src/forward.c:2842:10: style: Variable 'fd' is assigned a value that is never used. [unreadVariable] dnsmasq-2.91/src/forward.c:3285:22: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] dnsmasq-2.91/src/radv.c:95:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ND_ROUTER_SOLICIT [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/radv.c:143:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IF_NAMESIZE [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/radv.c:289:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ND_ROUTER_ADVERT [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/radv.c:756:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/radv.c:826:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/radv.c:902:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFNAMSIZ [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc1035.c:280:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in6_addr [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/radv.c:323:27: style: Condition 'parm.link_pref_time!=0' is always true [knownConditionTrueFalse] dnsmasq-2.91/src/radv.c:311:27: note: Assuming that condition 'parm.link_pref_time==0' is not redundant dnsmasq-2.91/src/radv.c:323:27: note: Condition 'parm.link_pref_time!=0' is always true dnsmasq-2.91/src/radv.c:923:17: style:inconclusive: Function 'iface_search' argument 6 names different: declaration 'prefered' definition 'preferred'. [funcArgNamesDifferent] dnsmasq-2.91/src/radv.c:61:17: note: Function 'iface_search' argument 6 names different: declaration 'prefered' definition 'preferred'. dnsmasq-2.91/src/radv.c:923:17: note: Function 'iface_search' argument 6 names different: declaration 'prefered' definition 'preferred'. dnsmasq-2.91/src/radv.c:766:56: style: Parameter 'mac' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/radv.c:986:52: style: Parameter 'iface' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/radv.c:997:56: style: Parameter 'ra' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/rfc2131.c:382:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc2131.c:1725:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc2131.c:1761:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc2131.c:1888:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DAEMON [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc2131.c:1974:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DAEMON [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc2131.c:2222:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc2131.c:2285:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DAEMON [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc2131.c:2438:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc2131.c:2802:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DAEMON [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc2131.c:2841:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DAEMON [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc1035.c:616:89: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dnsmasq-2.91/src/rfc1035.c:2217:18: style: Local variable 'rrtype' shadows outer function [shadowFunction] dnsmasq-2.91/src/dnsmasq.h:1342:16: note: Shadowed declaration dnsmasq-2.91/src/rfc1035.c:2217:18: note: Shadow variable dnsmasq-2.91/src/rfc1035.c:2362:40: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] dnsmasq-2.91/src/rfc1035.c:40:17: style: Variable 'bigmap' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:194:28: style: Variable 'penchunk' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:371:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:458:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:459:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:461:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:539:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:540:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:541:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:542:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:625:8: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:719:3: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:720:3: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:743:8: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:744:8: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:745:8: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:752:8: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:859:4: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:860:4: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:861:4: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:867:4: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:939:18: style: Variable 'rrdesc' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:1254:3: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:1255:3: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:1371:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:1372:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:1373:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:1374:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:1450:9: style: Variable 'sval' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:1577:38: style: Parameter 'crecp' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/rfc1035.c:1678:3: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc1035.c:1679:3: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc2131.c:1126:20: style: Local variable 'mac' shadows outer variable [shadowVariable] dnsmasq-2.91/src/rfc2131.c:81:20: note: Shadowed declaration dnsmasq-2.91/src/rfc2131.c:1126:20: note: Shadow variable dnsmasq-2.91/src/rfc2131.c:197:19: style: Variable 'last_opt' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc2131.c:690:22: style: Variable 'pp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc2131.c:1309:24: style: Variable 'addr_config' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc2131.c:1449:24: style: Variable 'rop' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc2131.c:1686:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc2131.c:1769:69: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/rfc2131.c:1796:24: style: Variable 'overload' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc2131.c:1819:50: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/rfc2131.c:1835:18: style: Variable 'p' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc2131.c:1864:98: style: Parameter 'real_end' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/rfc2131.c:1924:75: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/rfc2131.c:2010:80: style: Parameter 'context' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/rfc2131.c:2040:35: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/rfc2131.c:2153:83: style: Parameter 'uuid' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/rfc2131.c:2352:67: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/rfc2131.c:2438:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc2131.c:951:23: style: Variable 'workaround' is assigned a value that is never used. [unreadVariable] dnsmasq-2.91/src/rfc2131.c:2380:20: style: Variable 'conf_len' is assigned a value that is never used. [unreadVariable] dnsmasq-2.91/src/rfc3315.c:171:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc3315.c:314:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc3315.c:1541:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DAEMON [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc3315.c:1976:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc3315.c:2027:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc3315.c:2073:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc3315.c:2172:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc3315.c:2314:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable snoop_record [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/option.c:2113:16: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] dnsmasq-2.91/src/option.c:6202:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] dnsmasq-2.91/src/option.c:6207:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] dnsmasq-2.91/src/option.c:5488:33: style: Redundant condition: The condition '*start' is redundant since '*start == ' '' is sufficient. [redundantCondition] dnsmasq-2.91/src/option.c:1940:26: warning: Either the condition 'comma' is redundant or there is possible null pointer dereference: comma. [nullPointerRedundantCheck] dnsmasq-2.91/src/option.c:1866:13: note: Assuming that condition 'comma' is not redundant dnsmasq-2.91/src/option.c:1940:26: note: Null pointer dereference dnsmasq-2.91/src/rrfilter.c:41:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rrfilter.c:121:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rrfilter.c:122:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rrfilter.c:124:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rrfilter.c:177:3: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rrfilter.c:178:3: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rrfilter.c:192:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rrfilter.c:193:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rrfilter.c:195:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rrfilter.c:281:22: style: Variable 'end' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/option.c:1831:24: style: Local variable 'cp' shadows outer variable [shadowVariable] dnsmasq-2.91/src/option.c:1447:22: note: Shadowed declaration dnsmasq-2.91/src/option.c:1831:24: note: Shadow variable dnsmasq-2.91/src/option.c:3460:6: style: Local variable 'i' shadows outer variable [shadowVariable] dnsmasq-2.91/src/option.c:2006:7: note: Shadowed declaration dnsmasq-2.91/src/option.c:3460:6: note: Shadow variable dnsmasq-2.91/src/option.c:5822:20: style: Local variable 'opts' shadows outer variable [shadowVariable] dnsmasq-2.91/src/option.c:202:30: note: Shadowed declaration dnsmasq-2.91/src/option.c:5822:20: note: Shadow variable dnsmasq-2.91/src/option.c:686:30: style: Parameter 's' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/option.c:794:27: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/option.c:794:39: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/option.c:823:5: style: Variable 'tab' can be declared as const array [constVariable] dnsmasq-2.91/src/option.c:840:13: style: Variable 'desc' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/option.c:841:13: style: Variable 'eq' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/option.c:876:37: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/option.c:1722:10: style: Variable 'slash' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/option.c:1748:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/option.c:2004:63: style: Parameter 'gen_err' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/option.c:2070:17: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/option.c:2208:17: style: Variable 'err' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/option.c:2456:14: style: Variable 'fam' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/option.c:3030:8: style: Variable 'lastdomain' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/option.c:3032:8: style: Variable 'err' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/option.c:4697:8: style: Variable 'three' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/option.c:4820:8: style: Variable 'dash' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/option.c:5408:29: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/option.c:5417:13: style: Variable 'errmess' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/option.c:5699:21: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/option.c:5886:45: style: Parameter 'compile_opts' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/slaac.c:47:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARPHRD_ETHER [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/slaac.c:154:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ICMP6_ECHO_REQUEST [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/slaac.c:205:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/option.c:59:8: style: struct member 'myoption::flag' is never used. [unusedStructMember] dnsmasq-2.91/src/option.c:892:13: style: Variable 'ecode' is assigned a value that is never used. [unreadVariable] dnsmasq-2.91/src/option.c:3083:13: style: Variable 'cur_domain' is assigned a value that is never used. [unreadVariable] dnsmasq-2.91/src/slaac.c:195:23: style: Variable 'ping' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc3315.c:247:8: error: Address of local auto-variable assigned to a function parameter. [autoVariables] dnsmasq-2.91/src/rfc3315.c:297:3: error: Address of local auto-variable assigned to a function parameter. [autoVariables] dnsmasq-2.91/src/rfc3315.c:590:7: error: Address of local auto-variable assigned to a function parameter. [autoVariables] dnsmasq-2.91/src/rfc3315.c:601:7: error: Address of local auto-variable assigned to a function parameter. [autoVariables] dnsmasq-2.91/src/tftp.c:60:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IF_NAMESIZE [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/tftp.c:517:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/tftp.c:592:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/tftp.c:718:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_USER [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/tftp.c:787:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_USER [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/tftp.c:797:91: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc3315.c:1532:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dnsmasq-2.91/src/rfc3315.c:495:20: style: Variable 'pp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc3315.c:1531:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc3315.c:1616:35: style: Parameter 'state' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/rfc3315.c:1726:40: style: Parameter 'state' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/rfc3315.c:1728:22: style: Variable 'lease' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc3315.c:1830:50: style: Parameter 'context' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/rfc3315.c:1937:13: style: Variable 'rop' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc3315.c:2096:49: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/rfc3315.c:2110:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc3315.c:2111:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc3315.c:2123:48: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/rfc3315.c:2131:3: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc3315.c:2144:18: style: Variable 'p' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/rfc3315.c:2254:63: style: Parameter 'arrival_interface' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/util.c:46:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/util.c:345:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/util.c:355:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/util.c:384:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/util.c:396:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/util.c:565:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/util.c:701:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/util.c:742:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/util.c:794:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dnsmasq-2.91/src/rfc3315.c:1002:19: style: Variable 'preferred_time' is assigned a value that is never used. [unreadVariable] dnsmasq-2.91/src/rfc3315.c:1002:32: style: Variable 'valid_time' is assigned a value that is never used. [unreadVariable] dnsmasq-2.91/src/util.c:53:9: warning: Either the condition 'fd==-1' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] dnsmasq-2.91/src/util.c:48:10: note: Assuming that condition 'fd==-1' is not redundant dnsmasq-2.91/src/util.c:53:9: note: Invalid argument dnsmasq-2.91/src/util.c:104:14: style: Local variable 'outleft' shadows outer variable [shadowVariable] dnsmasq-2.91/src/util.c:42:12: note: Shadowed declaration dnsmasq-2.91/src/util.c:104:14: note: Shadow variable dnsmasq-2.91/src/util.c:391:30: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/util.c:521:35: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/util.c:521:55: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/util.c:677:34: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/util.c:677:52: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/util.c:717:44: style: Parameter 'mac' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/tftp.c:188:19: style: Local variable 'p' shadows outer variable [shadowVariable] dnsmasq-2.91/src/tftp.c:48:27: note: Shadowed declaration dnsmasq-2.91/src/tftp.c:188:19: note: Shadow variable dnsmasq-2.91/src/tftp.c:48:20: style: Variable 'mode' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/tftp.c:48:37: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/tftp.c:435:23: style: Variable 'macaddr' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/tftp.c:504:66: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/tftp.c:692:6: style: Variable 'mess' can be declared as pointer to const [constVariablePointer] dnsmasq-2.91/src/tftp.c:743:35: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/tftp.c:769:54: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/tftp.c:769:81: style: Parameter 'arg2' can be declared as pointer to const [constParameterPointer] dnsmasq-2.91/src/tftp.c:70:10: style: union member 'Anonymous10::control6' is never used. [unusedStructMember] diff: head dnsmasq-2.91/src/dhcp.c:1131:21: error: Uninitialized variable: ifr [uninitvar] head dnsmasq-2.91/src/dhcp.c:228:49: error: Uninitialized variable: ifr [uninitvar] head dnsmasq-2.91/src/dhcp6.c:134:47: error: Uninitialized variable: ifr [uninitvar] head dnsmasq-2.91/src/forward.c:1768:46: error: Uninitialized variable: ifr [uninitvar] head dnsmasq-2.91/src/network.c:195:16: error: Uninitialized variable: ifr [uninitvar] head dnsmasq-2.91/src/network.c:257:41: error: Uninitialized variable: ifr [uninitvar] head dnsmasq-2.91/src/rfc3315.c:2110:7: style: Variable 't_cp' can be declared as pointer to const [constVariablePointer] DONE