2025-05-06 04:55 ftp://ftp.de.debian.org/debian/pool/main/m/masscan/masscan_1.3.2+ds1.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 581f101 (2025-05-05 21:13:30 +0200) count: 382 381 elapsed-time: 40.8 42.3 head-timing-info: old-timing-info: head results: masscan-1.3.2/src/crypto-base64.c:193:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/crypto-base64.c:134:11: style: Condition 'i=sizeof_src' is not redundant masscan-1.3.2/src/crypto-base64.c:134:11: note: Condition 'i=sizeof_src' is always false [knownConditionTrueFalse] masscan-1.3.2/src/crypto-base64.c:129:8: note: Assuming that condition 'i>=sizeof_src' is not redundant masscan-1.3.2/src/crypto-base64.c:136:28: note: Condition 'i++>=sizeof_src' is always false masscan-1.3.2/src/crypto-base64.c:146:11: style: Condition 'i=sizeof_src' is not redundant masscan-1.3.2/src/crypto-base64.c:146:11: note: Condition 'i=sizeof_src' is always false [knownConditionTrueFalse] masscan-1.3.2/src/crypto-base64.c:141:8: note: Assuming that condition 'i>=sizeof_src' is not redundant masscan-1.3.2/src/crypto-base64.c:148:28: note: Condition 'i++>=sizeof_src' is always false masscan-1.3.2/src/crypto-base64.c:11:21: style:inconclusive: Function 'base64_encode' argument 1 names different: declaration 'dst' definition 'vdst'. [funcArgNamesDifferent] masscan-1.3.2/src/crypto-base64.h:6:28: note: Function 'base64_encode' argument 1 names different: declaration 'dst' definition 'vdst'. masscan-1.3.2/src/crypto-base64.c:11:21: note: Function 'base64_encode' argument 1 names different: declaration 'dst' definition 'vdst'. masscan-1.3.2/src/crypto-base64.c:12:27: style:inconclusive: Function 'base64_encode' argument 3 names different: declaration 'src' definition 'vsrc'. [funcArgNamesDifferent] masscan-1.3.2/src/crypto-base64.h:6:64: note: Function 'base64_encode' argument 3 names different: declaration 'src' definition 'vsrc'. masscan-1.3.2/src/crypto-base64.c:12:27: note: Function 'base64_encode' argument 3 names different: declaration 'src' definition 'vsrc'. masscan-1.3.2/src/crypto-base64.c:68:21: style:inconclusive: Function 'base64_decode' argument 1 names different: declaration 'dst' definition 'vdst'. [funcArgNamesDifferent] masscan-1.3.2/src/crypto-base64.h:5:28: note: Function 'base64_decode' argument 1 names different: declaration 'dst' definition 'vdst'. masscan-1.3.2/src/crypto-base64.c:68:21: note: Function 'base64_decode' argument 1 names different: declaration 'dst' definition 'vdst'. masscan-1.3.2/src/crypto-base64.c:69:27: style:inconclusive: Function 'base64_decode' argument 3 names different: declaration 'src' definition 'vsrc'. [funcArgNamesDifferent] masscan-1.3.2/src/crypto-base64.h:5:64: note: Function 'base64_decode' argument 3 names different: declaration 'src' definition 'vsrc'. masscan-1.3.2/src/crypto-base64.c:69:27: note: Function 'base64_decode' argument 3 names different: declaration 'src' definition 'vsrc'. masscan-1.3.2/src/crypto-blackrock2.c:567:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/crypto-blackrock2.c:416:57: style:inconclusive: Function 'blackrock2_shuffle' argument 2 names different: declaration 'index' definition 'm'. [funcArgNamesDifferent] masscan-1.3.2/src/rand-blackrock.h:49:57: note: Function 'blackrock2_shuffle' argument 2 names different: declaration 'index' definition 'm'. masscan-1.3.2/src/crypto-blackrock2.c:416:57: note: Function 'blackrock2_shuffle' argument 2 names different: declaration 'index' definition 'm'. masscan-1.3.2/src/crypto-blackrock2.c:446:26: style: Parameter 'br' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/crypto-blackrock2.c:529:20: style: Variable 'is_success' is assigned a value that is never used. [unreadVariable] masscan-1.3.2/src/event-timeout.c:66:26: style:inconclusive: Function 'timeouts_create' argument 1 names different: declaration 'timestamp_now' definition 'timestamp'. [funcArgNamesDifferent] masscan-1.3.2/src/event-timeout.h:68:26: note: Function 'timeouts_create' argument 1 names different: declaration 'timestamp_now' definition 'timestamp'. masscan-1.3.2/src/event-timeout.c:66:26: note: Function 'timeouts_create' argument 1 names different: declaration 'timestamp_now' definition 'timestamp'. masscan-1.3.2/src/event-timeout.c:102:38: style:inconclusive: Function 'timeouts_add' argument 4 names different: declaration 'timestamp_expires' definition 'timestamp'. [funcArgNamesDifferent] masscan-1.3.2/src/event-timeout.h:91:43: note: Function 'timeouts_add' argument 4 names different: declaration 'timestamp_expires' definition 'timestamp'. masscan-1.3.2/src/event-timeout.c:102:38: note: Function 'timeouts_add' argument 4 names different: declaration 'timestamp_expires' definition 'timestamp'. masscan-1.3.2/src/event-timeout.c:131:53: style:inconclusive: Function 'timeouts_remove' argument 2 names different: declaration 'timestamp_now' definition 'timestamp'. [funcArgNamesDifferent] masscan-1.3.2/src/event-timeout.h:109:53: note: Function 'timeouts_remove' argument 2 names different: declaration 'timestamp_now' definition 'timestamp'. masscan-1.3.2/src/event-timeout.c:131:53: note: Function 'timeouts_remove' argument 2 names different: declaration 'timestamp_now' definition 'timestamp'. masscan-1.3.2/src/rte-ring.h:524:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rte-ring.h:603:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/in-binary.c:239:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/in-binary.c:293:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/in-binary.c:497:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/in-binary.c:101:24: style: Parameter 'filter' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/in-binary.c:226:24: style: Parameter 'filter' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/in-binary.c:276:50: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/in-binary.c:335:50: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/in-binary.c:371:50: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/in-binary.c:415:20: style: Variable 'data' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/rte-ring.h:367:27: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] masscan-1.3.2/src/rte-ring.h:454:23: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] masscan-1.3.2/src/in-filter.c:7:36: style:inconclusive: Function 'readscan_filter_pass' argument 4 names different: declaration 'massip' definition 'filter'. [funcArgNamesDifferent] masscan-1.3.2/src/in-filter.h:17:36: note: Function 'readscan_filter_pass' argument 4 names different: declaration 'massip' definition 'filter'. masscan-1.3.2/src/in-filter.c:7:36: note: Function 'readscan_filter_pass' argument 4 names different: declaration 'massip' definition 'filter'. masscan-1.3.2/src/in-report.c:330:35: style:inconclusive: Function 'readscan_report' argument 3 names different: declaration 'data' definition 'r_data'. [funcArgNamesDifferent] masscan-1.3.2/src/in-report.h:8:35: note: Function 'readscan_report' argument 3 names different: declaration 'data' definition 'r_data'. masscan-1.3.2/src/in-report.c:330:35: note: Function 'readscan_report' argument 3 names different: declaration 'data' definition 'r_data'. masscan-1.3.2/src/in-report.c:331:27: style:inconclusive: Function 'readscan_report' argument 4 names different: declaration 'data_length' definition 'r_data_length'. [funcArgNamesDifferent] masscan-1.3.2/src/in-report.h:9:27: note: Function 'readscan_report' argument 4 names different: declaration 'data_length' definition 'r_data_length'. masscan-1.3.2/src/in-report.c:331:27: note: Function 'readscan_report' argument 4 names different: declaration 'data_length' definition 'r_data_length'. masscan-1.3.2/src/in-report.c:331:27: style: Parameter 'r_data_length' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/logger.c:28:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/logger.c:57:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/logger.c:17:24: style:inconclusive: Function 'LOG_add_level' argument 1 names different: declaration 'level' definition 'x'. [funcArgNamesDifferent] masscan-1.3.2/src/logger.h:8:24: note: Function 'LOG_add_level' argument 1 names different: declaration 'level' definition 'x'. masscan-1.3.2/src/logger.c:17:24: note: Function 'LOG_add_level' argument 1 names different: declaration 'level' definition 'x'. masscan-1.3.2/src/main-conf.c:128:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __VERSION__ [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-conf.c:383:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-conf.c:656:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-conf.c:711:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-conf.c:975:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-conf.c:1015:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-conf.c:1040:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-conf.c:1087:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-conf.c:1454:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-conf.c:1484:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-conf.c:1498:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-conf.c:1518:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-conf.c:1574:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-conf.c:1608:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-conf.c:1737:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-conf.c:2581:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-conf.c:3088:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-conf.c:1552:59: style: Condition 'p[strlen(p)-1]=='/'' is always false [knownConditionTrueFalse] masscan-1.3.2/src/main-conf.c:2976:43: style: Condition 'Templ_Oproto_first<=rrange.begin' is always false [knownConditionTrueFalse] masscan-1.3.2/src/main-conf.c:2971:37: note: Assuming that condition 'rrange.begin>=Templ_UDP' is not redundant masscan-1.3.2/src/main-conf.c:2976:43: note: Condition 'Templ_Oproto_first<=rrange.begin' is always false masscan-1.3.2/src/main-conf.c:1256:17: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] masscan-1.3.2/src/main-conf.c:274:34: style: Parameter 'masscan' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/main-conf.c:1421:48: style: Parameter 'masscan' can be declared as pointer to const. However it seems that 'SET_randomize_hosts' is a callback function, if 'masscan' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/main-conf.c:1692:25: note: You might need to cast the function pointer here masscan-1.3.2/src/main-conf.c:1421:48: note: Parameter 'masscan' can be declared as pointer to const masscan-1.3.2/src/main-conf.c:2562:23: style: Variable 'name' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/main-dedup.c:385:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-dedup.c:120:34: style:inconclusive: Function 'dedup_destroy' argument 1 names different: declaration 'table' definition 'dedup'. [funcArgNamesDifferent] masscan-1.3.2/src/main-dedup.h:9:34: note: Function 'dedup_destroy' argument 1 names different: declaration 'table' definition 'dedup'. masscan-1.3.2/src/main-dedup.c:120:34: note: Function 'dedup_destroy' argument 1 names different: declaration 'table' definition 'dedup'. masscan-1.3.2/src/main-dedup.c:339:19: style: Variable 'line' is assigned a value that is never used. [unreadVariable] masscan-1.3.2/src/main-initadapter.c:102:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-initadapter.c:32:25: style: Variable 'adapter_ip' is assigned a value that is never used. [unreadVariable] masscan-1.3.2/src/main-ptrace.c:103:13: warning: %u in format string (no. 5) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] masscan-1.3.2/src/main-ptrace.c:11:31: style:inconclusive: Function 'packet_trace' argument 2 names different: declaration 'pt_trace' definition 'pt_start'. [funcArgNamesDifferent] masscan-1.3.2/src/main-ptrace.h:7:36: note: Function 'packet_trace' argument 2 names different: declaration 'pt_trace' definition 'pt_start'. masscan-1.3.2/src/main-ptrace.c:11:31: note: Function 'packet_trace' argument 2 names different: declaration 'pt_trace' definition 'pt_start'. masscan-1.3.2/src/main-readrange.c:55:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-status.c:133:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-status.c:179:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main-status.c:41:27: style: Variable 'current_tcbs' is assigned a value that is never used. [unreadVariable] masscan-1.3.2/src/main-status.c:42:30: style: Variable 'current_synacks' is assigned a value that is never used. [unreadVariable] masscan-1.3.2/src/main-status.c:43:27: style: Variable 'current_syns' is assigned a value that is never used. [unreadVariable] masscan-1.3.2/src/main-throttle.c:29:35: style:inconclusive: Function 'throttler_start' argument 1 names different: declaration 'status' definition 'throttler'. [funcArgNamesDifferent] masscan-1.3.2/src/main-throttle.h:25:40: note: Function 'throttler_start' argument 1 names different: declaration 'status' definition 'throttler'. masscan-1.3.2/src/main-throttle.c:29:35: note: Function 'throttler_start' argument 1 names different: declaration 'status' definition 'throttler'. masscan-1.3.2/src/main-throttle.c:59:60: style:inconclusive: Function 'throttler_next_batch' argument 2 names different: declaration 'count' definition 'packet_count'. [funcArgNamesDifferent] masscan-1.3.2/src/main-throttle.h:24:69: note: Function 'throttler_next_batch' argument 2 names different: declaration 'count' definition 'packet_count'. masscan-1.3.2/src/main-throttle.c:59:60: note: Function 'throttler_next_batch' argument 2 names different: declaration 'count' definition 'packet_count'. masscan-1.3.2/src/main.c:877:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main.c:1099:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main.c:1653:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/main.c:1108:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] masscan-1.3.2/src/main.c:1461:36: style: Variable 'parms' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/massip-addr.c:141:56: style:inconclusive: Function 'ipv4address_fmt' argument 1 names different: declaration 'a' definition 'ip'. [funcArgNamesDifferent] masscan-1.3.2/src/massip-addr.h:147:56: note: Function 'ipv4address_fmt' argument 1 names different: declaration 'a' definition 'ip'. masscan-1.3.2/src/massip-addr.c:141:56: note: Function 'ipv4address_fmt' argument 1 names different: declaration 'a' definition 'ip'. masscan-1.3.2/src/massip-addr.c:163:56: style:inconclusive: Function 'macaddress_fmt' argument 1 names different: declaration 'a' definition 'mac'. [funcArgNamesDifferent] masscan-1.3.2/src/massip-addr.h:149:56: note: Function 'macaddress_fmt' argument 1 names different: declaration 'a' definition 'mac'. masscan-1.3.2/src/massip-addr.c:163:56: note: Function 'macaddress_fmt' argument 1 names different: declaration 'a' definition 'mac'. masscan-1.3.2/src/massip-addr.c:228:43: style:inconclusive: Function 'massint128_bitcount' argument 1 names different: declaration 'num' definition 'number'. [funcArgNamesDifferent] masscan-1.3.2/src/massip-addr.h:151:43: note: Function 'massint128_bitcount' argument 1 names different: declaration 'num' definition 'number'. masscan-1.3.2/src/massip-addr.c:228:43: note: Function 'massint128_bitcount' argument 1 names different: declaration 'num' definition 'number'. masscan-1.3.2/src/massip-addr.c:106:12: error: Uninitialized variable: out [uninitvar] masscan-1.3.2/src/massip-addr.c:160:12: error: Uninitialized variable: out [uninitvar] masscan-1.3.2/src/massip-addr.c:186:12: error: Uninitialized variable: out [uninitvar] masscan-1.3.2/src/massip-addr.c:213:12: error: Uninitialized variable: out [uninitvar] masscan-1.3.2/src/massip-parse.c:815:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/massip-parse.c:872:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/massip-parse.c:961:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/massip-parse.c:1008:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/massip-parse.c:1063:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/massip-parse.c:1125:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/massip-parse.c:1186:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/massip-parse.c:1274:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/massip-parse.c:859:19: style: Checking if unsigned expression 'count' is less than zero. [unsignedLessThanZero] masscan-1.3.2/src/massip-parse.c:943:31: style:inconclusive: Function 'massip_parse_ipv6' argument 1 names different: declaration 'buf' definition 'line'. [funcArgNamesDifferent] masscan-1.3.2/src/massip-parse.h:58:31: note: Function 'massip_parse_ipv6' argument 1 names different: declaration 'buf' definition 'line'. masscan-1.3.2/src/massip-parse.c:943:31: note: Function 'massip_parse_ipv6' argument 1 names different: declaration 'buf' definition 'line'. masscan-1.3.2/src/massip-parse.c:991:31: style:inconclusive: Function 'massip_parse_ipv4' argument 1 names different: declaration 'buf' definition 'line'. [funcArgNamesDifferent] masscan-1.3.2/src/massip-parse.h:61:31: note: Function 'massip_parse_ipv4' argument 1 names different: declaration 'buf' definition 'line'. masscan-1.3.2/src/massip-parse.c:991:31: note: Function 'massip_parse_ipv4' argument 1 names different: declaration 'buf' definition 'line'. masscan-1.3.2/src/massip-parse.c:1035:46: style:inconclusive: Function 'massip_parse_range' argument 2 names different: declaration 'inout_offset' definition 'offset'. [funcArgNamesDifferent] masscan-1.3.2/src/massip-parse.h:48:46: note: Function 'massip_parse_range' argument 2 names different: declaration 'inout_offset' definition 'offset'. masscan-1.3.2/src/massip-parse.c:1035:46: note: Function 'massip_parse_range' argument 2 names different: declaration 'inout_offset' definition 'offset'. masscan-1.3.2/src/massip-parse.c:1035:61: style:inconclusive: Function 'massip_parse_range' argument 3 names different: declaration 'max' definition 'count'. [funcArgNamesDifferent] masscan-1.3.2/src/massip-parse.h:48:67: note: Function 'massip_parse_range' argument 3 names different: declaration 'max' definition 'count'. masscan-1.3.2/src/massip-parse.c:1035:61: note: Function 'massip_parse_range' argument 3 names different: declaration 'max' definition 'count'. masscan-1.3.2/src/massip-parse.c:65:35: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/massip-parse.c:1104:7: style: Variable 'cases' can be declared as const array [constVariable] masscan-1.3.2/src/massip-rangesv4.c:844:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/massip-rangesv4.c:1106:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/massip-rangesv4.c:729:21: style: Condition 'index>=picker[mid]' is always true [knownConditionTrueFalse] masscan-1.3.2/src/massip-rangesv4.c:726:19: note: Assuming that condition 'index=picker[mid]' is always true masscan-1.3.2/src/massip-rangesv4.c:56:47: style:inconclusive: Function 'rangelist_is_contains' argument 1 names different: declaration 'task' definition 'targets'. [funcArgNamesDifferent] masscan-1.3.2/src/massip-rangesv4.h:53:47: note: Function 'rangelist_is_contains' argument 1 names different: declaration 'task' definition 'targets'. masscan-1.3.2/src/massip-rangesv4.c:56:47: note: Function 'rangelist_is_contains' argument 1 names different: declaration 'task' definition 'targets'. masscan-1.3.2/src/massip-rangesv4.c:56:65: style:inconclusive: Function 'rangelist_is_contains' argument 2 names different: declaration 'number' definition 'addr'. [funcArgNamesDifferent] masscan-1.3.2/src/massip-rangesv4.h:53:62: note: Function 'rangelist_is_contains' argument 2 names different: declaration 'number' definition 'addr'. masscan-1.3.2/src/massip-rangesv4.c:56:65: note: Function 'rangelist_is_contains' argument 2 names different: declaration 'number' definition 'addr'. masscan-1.3.2/src/massip-rangesv4.c:196:39: style:inconclusive: Function 'rangelist_add_range' argument 1 names different: declaration 'task' definition 'targets'. [funcArgNamesDifferent] masscan-1.3.2/src/massip-rangesv4.h:39:39: note: Function 'rangelist_add_range' argument 1 names different: declaration 'task' definition 'targets'. masscan-1.3.2/src/massip-rangesv4.c:196:39: note: Function 'rangelist_add_range' argument 1 names different: declaration 'task' definition 'targets'. masscan-1.3.2/src/massip-rangesv4.c:237:40: style:inconclusive: Function 'rangelist_remove_all' argument 1 names different: declaration 'list' definition 'targets'. [funcArgNamesDifferent] masscan-1.3.2/src/massip-rangesv4.h:167:40: note: Function 'rangelist_remove_all' argument 1 names different: declaration 'list' definition 'targets'. masscan-1.3.2/src/massip-rangesv4.c:237:40: note: Function 'rangelist_remove_all' argument 1 names different: declaration 'list' definition 'targets'. masscan-1.3.2/src/massip-rangesv4.c:706:58: style:inconclusive: Function 'rangelist_pick' argument 2 names different: declaration 'i' definition 'index'. [funcArgNamesDifferent] masscan-1.3.2/src/massip-rangesv4.h:134:58: note: Function 'rangelist_pick' argument 2 names different: declaration 'i' definition 'index'. masscan-1.3.2/src/massip-rangesv4.c:706:58: note: Function 'rangelist_pick' argument 2 names different: declaration 'i' definition 'index'. masscan-1.3.2/src/massip-rangesv4.c:60:23: style: Variable 'range' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/massip-rangesv4.c:117:19: style: Variable 'left' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/massip-rangesv4.c:118:19: style: Variable 'right' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/massip-rangesv6.c:522:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/massip-rangesv6.c:627:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/massip-rangesv6.c:703:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/massip-rangesv6.c:156:15: style: Condition 'ip.lo==~0' is always false [knownConditionTrueFalse] masscan-1.3.2/src/massip-rangesv6.c:532:21: style: Condition 'index>=picker[mid]' is always true [knownConditionTrueFalse] masscan-1.3.2/src/massip-rangesv6.c:529:19: note: Assuming that condition 'index=picker[mid]' is always true masscan-1.3.2/src/massip-rangesv6.c:710:9: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] masscan-1.3.2/src/massip-rangesv6.c:384:42: style:inconclusive: Function 'range6list_remove_all' argument 1 names different: declaration 'list' definition 'targets'. [funcArgNamesDifferent] masscan-1.3.2/src/massip-rangesv6.h:153:42: note: Function 'range6list_remove_all' argument 1 names different: declaration 'list' definition 'targets'. masscan-1.3.2/src/massip-rangesv6.c:384:42: note: Function 'range6list_remove_all' argument 1 names different: declaration 'list' definition 'targets'. masscan-1.3.2/src/massip-rangesv6.c:190:24: style: Variable 'range' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/massip-rangesv6.c:279:20: style: Variable 'left' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/massip-rangesv6.c:280:20: style: Variable 'right' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/massip.c:149:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/massip.c:102:43: style:inconclusive: Function 'massip_add_port_string' argument 1 names different: declaration 'massip' definition 'targets'. [funcArgNamesDifferent] masscan-1.3.2/src/massip.h:78:43: note: Function 'massip_add_port_string' argument 1 names different: declaration 'massip' definition 'targets'. masscan-1.3.2/src/massip.c:102:43: note: Function 'massip_add_port_string' argument 1 names different: declaration 'massip' definition 'targets'. masscan-1.3.2/src/massip.c:102:81: style:inconclusive: Function 'massip_add_port_string' argument 3 names different: declaration 'proto' definition 'defaultrange'. [funcArgNamesDifferent] masscan-1.3.2/src/massip.h:78:80: note: Function 'massip_add_port_string' argument 3 names different: declaration 'proto' definition 'defaultrange'. masscan-1.3.2/src/massip.c:102:81: note: Function 'massip_add_port_string' argument 3 names different: declaration 'proto' definition 'defaultrange'. masscan-1.3.2/src/misc-rstfilter.c:161:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/misc-rstfilter.c:161:13: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] masscan-1.3.2/src/misc-rstfilter.c:176:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] masscan-1.3.2/src/misc-rstfilter.c:182:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] masscan-1.3.2/src/out-tcp-services.c:44:14: portability: Non reentrant function 'getservbyport' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyport_r'. [prohibitedgetservbyportCalled] masscan-1.3.2/src/out-tcp-services.c:76:14: portability: Non reentrant function 'getservbyport' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyport_r'. [prohibitedgetservbyportCalled] masscan-1.3.2/src/out-tcp-services.c:94:18: portability: Non reentrant function 'getprotobynumber' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getprotobynumber_r'. [prohibitedgetprotobynumberCalled] masscan-1.3.2/src/out-tcp-services.c:87:25: style:inconclusive: Function 'oproto_service_name' argument 1 names different: declaration 'protocol_number' definition 'port'. [funcArgNamesDifferent] masscan-1.3.2/src/out-tcp-services.h:6:37: note: Function 'oproto_service_name' argument 1 names different: declaration 'protocol_number' definition 'port'. masscan-1.3.2/src/out-tcp-services.c:87:25: note: Function 'oproto_service_name' argument 1 names different: declaration 'protocol_number' definition 'port'. masscan-1.3.2/src/out-tcp-services.c:42:21: style: Variable 'result' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/out-tcp-services.c:74:21: style: Variable 'result' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/out-tcp-services.c:92:26: style: Variable 'result' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/out-unicornscan.c:37:9: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] masscan-1.3.2/src/out-unicornscan.c:37:9: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] masscan-1.3.2/src/out-xml.c:50:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/out-xml.c:11:29: style: Parameter 'out' can be declared as pointer to const. However it seems that 'xml_out_open' is a callback function, if 'out' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/out-xml.c:137:5: note: You might need to cast the function pointer here masscan-1.3.2/src/out-xml.c:11:29: note: Parameter 'out' can be declared as pointer to const masscan-1.3.2/src/out-xml.c:35:30: style: Parameter 'out' can be declared as pointer to const. However it seems that 'xml_out_close' is a callback function, if 'out' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/out-xml.c:138:5: note: You might need to cast the function pointer here masscan-1.3.2/src/out-xml.c:35:30: note: Parameter 'out' can be declared as pointer to const masscan-1.3.2/src/out-xml.c:44:21: error: Uninitialized variable: &tm [uninitvar] masscan-1.3.2/src/output.c:185:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/output.c:636:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/output.c:737:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/output.c:870:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/output.c:962:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/output.c:552:13: portability: Assigning a pointer to an integer is not portable. [AssignmentAddressToInteger] masscan-1.3.2/src/output.c:88:31: style:inconclusive: Function 'status_string' argument 1 names different: declaration 'x' definition 'status'. [funcArgNamesDifferent] masscan-1.3.2/src/output.h:129:43: note: Function 'status_string' argument 1 names different: declaration 'x' definition 'status'. masscan-1.3.2/src/output.c:88:31: note: Function 'status_string' argument 1 names different: declaration 'x' definition 'status'. masscan-1.3.2/src/output.c:713:37: style:inconclusive: Function 'output_report_status' argument 1 names different: declaration 'output' definition 'out'. [funcArgNamesDifferent] masscan-1.3.2/src/output.h:164:42: note: Function 'output_report_status' argument 1 names different: declaration 'output' definition 'out'. masscan-1.3.2/src/output.c:713:37: note: Function 'output_report_status' argument 1 names different: declaration 'output' definition 'out'. masscan-1.3.2/src/output.c:849:37: style:inconclusive: Function 'output_report_banner' argument 1 names different: declaration 'output' definition 'out'. [funcArgNamesDifferent] masscan-1.3.2/src/output.h:176:32: note: Function 'output_report_banner' argument 1 names different: declaration 'output' definition 'out'. masscan-1.3.2/src/output.c:849:37: note: Function 'output_report_banner' argument 1 names different: declaration 'output' definition 'out'. masscan-1.3.2/src/output.c:849:49: style:inconclusive: Function 'output_report_banner' argument 2 names different: declaration 'timestamp' definition 'now'. [funcArgNamesDifferent] masscan-1.3.2/src/output.h:177:24: note: Function 'output_report_banner' argument 2 names different: declaration 'timestamp' definition 'now'. masscan-1.3.2/src/output.c:849:49: note: Function 'output_report_banner' argument 2 names different: declaration 'timestamp' definition 'now'. masscan-1.3.2/src/output.c:924:31: style:inconclusive: Function 'output_destroy' argument 1 names different: declaration 'output' definition 'out'. [funcArgNamesDifferent] masscan-1.3.2/src/output.h:162:36: note: Function 'output_destroy' argument 1 names different: declaration 'output' definition 'out'. masscan-1.3.2/src/output.c:924:31: note: Function 'output_destroy' argument 1 names different: declaration 'output' definition 'out'. masscan-1.3.2/src/output.c:552:27: error: Uninitialized variable: &tm [uninitvar] masscan-1.3.2/src/pixie-file.c:62:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/pixie-threads.c:176:0: error: #error need to find CPU count [preprocessorErrorDirective] masscan-1.3.2/src/pixie-threads.c:176:2: error: #error need to find CPU count [preprocessorErrorDirective] masscan-1.3.2/src/pixie-timer.c:269:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/proto-banner1.c:307:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/proto-banner1.c:424:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/proto-banner1.c:490:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/proto-banner1.c:113:31: style:inconclusive: Function 'banner1_parse' argument 2 names different: declaration 'pstate' definition 'tcb_state'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-banner1.h:328:31: note: Function 'banner1_parse' argument 2 names different: declaration 'pstate' definition 'tcb_state'. masscan-1.3.2/src/proto-banner1.c:113:31: note: Function 'banner1_parse' argument 2 names different: declaration 'pstate' definition 'tcb_state'. masscan-1.3.2/src/proto-banout.c:348:34: style:inconclusive: Function 'banout_append_base64' argument 3 names different: declaration 'px' definition 'vpx'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-banout.h:111:34: note: Function 'banout_append_base64' argument 3 names different: declaration 'px' definition 'vpx'. masscan-1.3.2/src/proto-banout.c:348:34: note: Function 'banout_append_base64' argument 3 names different: declaration 'px' definition 'vpx'. masscan-1.3.2/src/proto-banout.c:151:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/proto-banout.c:384:45: style: Parameter 'base64' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/proto-banout.c:410:43: style: Parameter 'banout' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/proto-coap.c:275:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/proto-coap.c:639:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/proto-dns.c:334:59: style:inconclusive: Function 'dns_set_cookie' argument 3 names different: declaration 'seqno' definition 'cookie'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-dns.h:11:68: note: Function 'dns_set_cookie' argument 3 names different: declaration 'seqno' definition 'cookie'. masscan-1.3.2/src/proto-dns.c:334:59: note: Function 'dns_set_cookie' argument 3 names different: declaration 'seqno' definition 'cookie'. masscan-1.3.2/src/proto-dns.c:356:38: style: Parameter 'parsed' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/proto-http.c:479:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/proto-http.c:71:17: style: Condition 'is_newline_seen' is always false [knownConditionTrueFalse] masscan-1.3.2/src/proto-http.c:58:32: note: Assignment 'is_newline_seen=0', assigned value is 0 masscan-1.3.2/src/proto-http.c:68:21: note: Assuming condition is false masscan-1.3.2/src/proto-http.c:71:17: note: Condition 'is_newline_seen' is always false masscan-1.3.2/src/proto-http.c:479:13: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] masscan-1.3.2/src/proto-http.c:137:29: style: Parameter 'xhttp_fields' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/proto-interactive.c:34:56: style:inconclusive: Function 'tcp_transmit' argument 2 names different: declaration 'data' definition 'payload'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-interactive.h:19:56: note: Function 'tcp_transmit' argument 2 names different: declaration 'data' definition 'payload'. masscan-1.3.2/src/proto-interactive.c:34:56: note: Function 'tcp_transmit' argument 2 names different: declaration 'data' definition 'payload'. masscan-1.3.2/src/proto-netbios.c:70:16: style: Checking if unsigned expression 'length' is less than zero. [unsignedLessThanZero] masscan-1.3.2/src/proto-netbios.c:67:23: note: Assignment 'offset=0', assigned value is 0 masscan-1.3.2/src/proto-netbios.c:70:16: note: Unsigned less than zero masscan-1.3.2/src/proto-netbios.c:113:30: style: Parameter 'parsed' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/proto-ntp.c:231:38: style: Parameter 'parsed' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/proto-preprocess.c:240:29: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] masscan-1.3.2/src/proto-preprocess.c:249:29: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] masscan-1.3.2/src/proto-preprocess.c:260:29: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] masscan-1.3.2/src/proto-preprocess.c:269:29: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] masscan-1.3.2/src/proto-preprocess.c:625:28: style: Variable 'info->found_offset' is reassigned a value before the old one has been used. [redundantAssignment] masscan-1.3.2/src/proto-preprocess.c:609:9: note: info->found_offset is assigned masscan-1.3.2/src/proto-preprocess.c:625:28: note: info->found_offset is overwritten masscan-1.3.2/src/proto-smb.c:1460:33: style: Variable 'buf' is assigned a value that is never used. [unreadVariable] masscan-1.3.2/src/proto-snmp.c:248:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/proto-snmp.c:278:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/proto-snmp.c:705:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/proto-snmp.c:539:38: style: Parameter 'parsed' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/proto-ssl.c:1194:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/proto-tcp-rdp.c:240:34: style: Redundant assignment of 'rdp->tpkt_length' to itself. [selfAssignment] masscan-1.3.2/src/proto-tcp-telnet.c:389:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/proto-tcp-telnet.c:362:7: style: Variable 'tests' can be declared as const array [constVariable] masscan-1.3.2/src/proto-tcp.c:842:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/proto-tcp.c:914:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/proto-tcp.c:849:18: style: The if condition is the same as the previous if condition [duplicateCondition] masscan-1.3.2/src/proto-tcp.c:836:18: note: First condition masscan-1.3.2/src/proto-tcp.c:849:18: note: Second condition masscan-1.3.2/src/proto-tcp.c:917:18: style: The if condition is the same as the previous if condition [duplicateCondition] masscan-1.3.2/src/proto-tcp.c:908:18: note: First condition masscan-1.3.2/src/proto-tcp.c:917:18: note: Second condition masscan-1.3.2/src/proto-tcp.c:420:34: style:inconclusive: Function 'tcpcon_create_table' argument 6 names different: declaration 'timeout' definition 'connection_timeout'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-tcp.h:54:34: note: Function 'tcpcon_create_table' argument 6 names different: declaration 'timeout' definition 'connection_timeout'. masscan-1.3.2/src/proto-tcp.c:420:34: note: Function 'tcpcon_create_table' argument 6 names different: declaration 'timeout' definition 'connection_timeout'. masscan-1.3.2/src/proto-tcp.c:711:15: style:inconclusive: Function 'tcpcon_create_tcb' argument 2 names different: declaration 'ip_src' definition 'ip_me'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-tcp.h:112:15: note: Function 'tcpcon_create_tcb' argument 2 names different: declaration 'ip_src' definition 'ip_me'. masscan-1.3.2/src/proto-tcp.c:711:15: note: Function 'tcpcon_create_tcb' argument 2 names different: declaration 'ip_src' definition 'ip_me'. masscan-1.3.2/src/proto-tcp.c:711:32: style:inconclusive: Function 'tcpcon_create_tcb' argument 3 names different: declaration 'ip_dst' definition 'ip_them'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-tcp.h:112:33: note: Function 'tcpcon_create_tcb' argument 3 names different: declaration 'ip_dst' definition 'ip_them'. masscan-1.3.2/src/proto-tcp.c:711:32: note: Function 'tcpcon_create_tcb' argument 3 names different: declaration 'ip_dst' definition 'ip_them'. masscan-1.3.2/src/proto-tcp.c:712:14: style:inconclusive: Function 'tcpcon_create_tcb' argument 4 names different: declaration 'port_src' definition 'port_me'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-tcp.h:113:14: note: Function 'tcpcon_create_tcb' argument 4 names different: declaration 'port_src' definition 'port_me'. masscan-1.3.2/src/proto-tcp.c:712:14: note: Function 'tcpcon_create_tcb' argument 4 names different: declaration 'port_src' definition 'port_me'. masscan-1.3.2/src/proto-tcp.c:712:32: style:inconclusive: Function 'tcpcon_create_tcb' argument 5 names different: declaration 'port_dst' definition 'port_them'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-tcp.h:113:33: note: Function 'tcpcon_create_tcb' argument 5 names different: declaration 'port_dst' definition 'port_them'. masscan-1.3.2/src/proto-tcp.c:712:32: note: Function 'tcpcon_create_tcb' argument 5 names different: declaration 'port_dst' definition 'port_them'. masscan-1.3.2/src/proto-tcp.c:713:14: style:inconclusive: Function 'tcpcon_create_tcb' argument 6 names different: declaration 'my_seqno' definition 'seqno_me'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-tcp.h:114:14: note: Function 'tcpcon_create_tcb' argument 6 names different: declaration 'my_seqno' definition 'seqno_me'. masscan-1.3.2/src/proto-tcp.c:713:14: note: Function 'tcpcon_create_tcb' argument 6 names different: declaration 'my_seqno' definition 'seqno_me'. masscan-1.3.2/src/proto-tcp.c:713:33: style:inconclusive: Function 'tcpcon_create_tcb' argument 7 names different: declaration 'their_seqno' definition 'seqno_them'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-tcp.h:114:33: note: Function 'tcpcon_create_tcb' argument 7 names different: declaration 'their_seqno' definition 'seqno_them'. masscan-1.3.2/src/proto-tcp.c:713:33: note: Function 'tcpcon_create_tcb' argument 7 names different: declaration 'their_seqno' definition 'seqno_them'. masscan-1.3.2/src/proto-tcp.c:782:15: style:inconclusive: Function 'tcb_lookup' argument 2 names different: declaration 'ip_src' definition 'ip_me'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-tcp.h:103:15: note: Function 'tcb_lookup' argument 2 names different: declaration 'ip_src' definition 'ip_me'. masscan-1.3.2/src/proto-tcp.c:782:15: note: Function 'tcb_lookup' argument 2 names different: declaration 'ip_src' definition 'ip_me'. masscan-1.3.2/src/proto-tcp.c:782:32: style:inconclusive: Function 'tcb_lookup' argument 3 names different: declaration 'ip_dst' definition 'ip_them'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-tcp.h:103:33: note: Function 'tcb_lookup' argument 3 names different: declaration 'ip_dst' definition 'ip_them'. masscan-1.3.2/src/proto-tcp.c:782:32: note: Function 'tcb_lookup' argument 3 names different: declaration 'ip_dst' definition 'ip_them'. masscan-1.3.2/src/proto-tcp.c:783:14: style:inconclusive: Function 'tcb_lookup' argument 4 names different: declaration 'port_src' definition 'port_me'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-tcp.h:104:14: note: Function 'tcb_lookup' argument 4 names different: declaration 'port_src' definition 'port_me'. masscan-1.3.2/src/proto-tcp.c:783:14: note: Function 'tcb_lookup' argument 4 names different: declaration 'port_src' definition 'port_me'. masscan-1.3.2/src/proto-tcp.c:783:32: style:inconclusive: Function 'tcb_lookup' argument 5 names different: declaration 'port_dst' definition 'port_them'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-tcp.h:104:33: note: Function 'tcb_lookup' argument 5 names different: declaration 'port_dst' definition 'port_them'. masscan-1.3.2/src/proto-tcp.c:783:32: note: Function 'tcb_lookup' argument 5 names different: declaration 'port_dst' definition 'port_them'. masscan-1.3.2/src/proto-tcp.c:1318:41: style:inconclusive: Function 'stack_incoming_tcp' argument 2 names different: declaration 'entry' definition 'tcb'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-tcp.h:91:82: note: Function 'stack_incoming_tcp' argument 2 names different: declaration 'entry' definition 'tcb'. masscan-1.3.2/src/proto-tcp.c:1318:41: note: Function 'stack_incoming_tcp' argument 2 names different: declaration 'entry' definition 'tcb'. masscan-1.3.2/src/proto-tcp.c:1319:19: style:inconclusive: Function 'stack_incoming_tcp' argument 3 names different: declaration 'what' definition 'in_what'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-tcp.h:92:9: note: Function 'stack_incoming_tcp' argument 3 names different: declaration 'what' definition 'in_what'. masscan-1.3.2/src/proto-tcp.c:1319:19: note: Function 'stack_incoming_tcp' argument 3 names different: declaration 'what' definition 'in_what'. masscan-1.3.2/src/proto-tcp.c:1319:40: style:inconclusive: Function 'stack_incoming_tcp' argument 4 names different: declaration 'p' definition 'vpayload'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-tcp.h:92:27: note: Function 'stack_incoming_tcp' argument 4 names different: declaration 'p' definition 'vpayload'. masscan-1.3.2/src/proto-tcp.c:1319:40: note: Function 'stack_incoming_tcp' argument 4 names different: declaration 'p' definition 'vpayload'. masscan-1.3.2/src/proto-tcp.c:1319:57: style:inconclusive: Function 'stack_incoming_tcp' argument 5 names different: declaration 'length' definition 'payload_length'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-tcp.h:92:37: note: Function 'stack_incoming_tcp' argument 5 names different: declaration 'length' definition 'payload_length'. masscan-1.3.2/src/proto-tcp.c:1319:57: note: Function 'stack_incoming_tcp' argument 5 names different: declaration 'length' definition 'payload_length'. masscan-1.3.2/src/proto-tcp.c:990:35: style: Parameter 'tcb' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/proto-tcp.c:1061:33: style: Parameter 'tcpcon' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/proto-tcp.c:108:25: style: struct member 'TCP_ConnectionTable::scripting_vm' is never used. [unusedStructMember] masscan-1.3.2/src/proto-udp.c:29:37: style: Parameter 'parsed' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/proto-vnc.c:216:41: style: Variable 'pstate->sub.vnc.sectype' is reassigned a value before the old one has been used. [redundantAssignment] masscan-1.3.2/src/proto-vnc.c:215:41: note: pstate->sub.vnc.sectype is assigned masscan-1.3.2/src/proto-vnc.c:216:41: note: pstate->sub.vnc.sectype is overwritten masscan-1.3.2/src/proto-x509.c:317:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/proto-x509.c:1243:17: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] masscan-1.3.2/src/proto-x509.c:1246:19: note: Found duplicate branches for 'if' and 'else'. masscan-1.3.2/src/proto-x509.c:1243:17: note: Found duplicate branches for 'if' and 'else'. masscan-1.3.2/src/proto-x509.c:1062:36: style:inconclusive: Function 'spnego_decode' argument 1 names different: declaration 'x' definition 'spnego'. [funcArgNamesDifferent] masscan-1.3.2/src/proto-spnego.h:23:36: note: Function 'spnego_decode' argument 1 names different: declaration 'x' definition 'spnego'. masscan-1.3.2/src/proto-x509.c:1062:36: note: Function 'spnego_decode' argument 1 names different: declaration 'x' definition 'spnego'. masscan-1.3.2/src/proto-zeroaccess.c:173:46: style: Parameter 'parsed' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/rand-blackrock.c:414:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rand-blackrock.c:156:15: style: Variable 'br->range' is reassigned a value before the old one has been used. [redundantAssignment] masscan-1.3.2/src/rand-blackrock.c:145:23: note: br->range is assigned masscan-1.3.2/src/rand-blackrock.c:156:15: note: br->range is overwritten masscan-1.3.2/src/rand-blackrock.c:268:56: style:inconclusive: Function 'blackrock_shuffle' argument 2 names different: declaration 'index' definition 'm'. [funcArgNamesDifferent] masscan-1.3.2/src/rand-blackrock.h:47:56: note: Function 'blackrock_shuffle' argument 2 names different: declaration 'index' definition 'm'. masscan-1.3.2/src/rand-blackrock.c:268:56: note: Function 'blackrock_shuffle' argument 2 names different: declaration 'index' definition 'm'. masscan-1.3.2/src/rand-blackrock.c:298:36: style: Parameter 'br' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/rand-lcg.c:127:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rand-lcg.c:318:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rand-lcg.c:384:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rand-lcg.c:286:30: style: Array index 'j' is used before limits check. [arrayIndexThenCheck] masscan-1.3.2/src/rand-lcg.c:367:20: style: Variable 'is_success' is assigned a value that is never used. [unreadVariable] masscan-1.3.2/src/rand-primegen.c:339:59: style: Parameter 'Lmodqq' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/rand-primegen.c:365:23: style: struct member 'todo::index' is never used. [unusedStructMember] masscan-1.3.2/src/rawsock-getip.c:173:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rawsock-getip.c:181:29: style: Variable 'sin' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/rawsock-getip6.c:223:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rawsock-getmac.c:183:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_LINK [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rawsock-pcapfile.c:298:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rawsock-pcapfile.c:544:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rawsock-pcapfile.c:683:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rawsock-pcapfile.c:732:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rawsock-pcapfile.c:918:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rawsock-pcapfile.c:312:27: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] masscan-1.3.2/src/rawsock-pcapfile.c:311:23: note: outer condition: *r_time_usecs>1000100 masscan-1.3.2/src/rawsock-pcapfile.c:312:27: note: opposite inner condition: *r_time_usecs<1000100 masscan-1.3.2/src/rawsock-pcapfile.c:295:31: style: Condition 'bytes_read==0' is always false [knownConditionTrueFalse] masscan-1.3.2/src/rawsock-pcapfile.c:292:24: note: Assuming that condition 'bytes_read<=0' is not redundant masscan-1.3.2/src/rawsock-pcapfile.c:295:31: note: Condition 'bytes_read==0' is always false masscan-1.3.2/src/rawsock-pcapfile.c:593:13: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] masscan-1.3.2/src/rawsock-pcapfile.c:593:13: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] masscan-1.3.2/src/rawsock-pcapfile.c:607:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] masscan-1.3.2/src/rawsock-pcapfile.c:795:27: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] masscan-1.3.2/src/rawsock-pcapfile.c:292:24: style: Checking if unsigned expression 'bytes_read' is less than zero. [unsignedLessThanZero] masscan-1.3.2/src/rawsock-pcapfile.c:380:28: style: Checking if unsigned expression 'bytes_read' is less than zero. [unsignedLessThanZero] masscan-1.3.2/src/rawsock-pcapfile.c:496:24: style: Checking if unsigned expression 'bytes_read' is less than zero. [unsignedLessThanZero] masscan-1.3.2/src/rawsock-pcapfile.c:563:24: style: Checking if unsigned expression 'bytes_read' is less than zero. [unsignedLessThanZero] masscan-1.3.2/src/rawsock-pcapfile.c:259:48: style:inconclusive: Function 'pcapfile_percentdone' argument 1 names different: declaration 'handle' definition 'capfile'. [funcArgNamesDifferent] masscan-1.3.2/src/rawsock-pcapfile.h:34:48: note: Function 'pcapfile_percentdone' argument 1 names different: declaration 'handle' definition 'capfile'. masscan-1.3.2/src/rawsock-pcapfile.c:259:48: note: Function 'pcapfile_percentdone' argument 1 names different: declaration 'handle' definition 'capfile'. masscan-1.3.2/src/rawsock-pcapfile.c:517:47: style:inconclusive: Function 'pcapfile_get_timestamps' argument 1 names different: declaration 'handle' definition 'capfile'. [funcArgNamesDifferent] masscan-1.3.2/src/rawsock-pcapfile.h:36:47: note: Function 'pcapfile_get_timestamps' argument 1 names different: declaration 'handle' definition 'capfile'. masscan-1.3.2/src/rawsock-pcapfile.c:517:47: note: Function 'pcapfile_get_timestamps' argument 1 names different: declaration 'handle' definition 'capfile'. masscan-1.3.2/src/rawsock-pcapfile.c:259:48: style: Parameter 'capfile' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/rawsock-pcapfile.c:517:47: style: Parameter 'capfile' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/rawsock.c:211:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rawsock.c:242:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rawsock.c:298:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rawsock.c:629:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rawsock.c:941:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/read-service-probes.c:123:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/read-service-probes.c:151:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/read-service-probes.c:210:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/read-service-probes.c:261:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/read-service-probes.c:445:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/read-service-probes.c:678:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/read-service-probes.c:825:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/read-service-probes.c:528:20: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] masscan-1.3.2/src/read-service-probes.c:519:19: note: outer condition: offset=line_length masscan-1.3.2/src/read-service-probes.c:916:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] masscan-1.3.2/src/read-service-probes.c:918:13: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] masscan-1.3.2/src/read-service-probes.c:1108:53: style:inconclusive: Function 'nmapserviceprobes_free' argument 1 names different: declaration 'service_probes' definition 'list'. [funcArgNamesDifferent] masscan-1.3.2/src/read-service-probes.h:97:53: note: Function 'nmapserviceprobes_free' argument 1 names different: declaration 'service_probes' definition 'list'. masscan-1.3.2/src/read-service-probes.c:1108:53: note: Function 'nmapserviceprobes_free' argument 1 names different: declaration 'service_probes' definition 'list'. masscan-1.3.2/src/read-service-probes.c:106:42: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/read-service-probes.c:133:43: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/read-service-probes.c:189:45: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/read-service-probes.c:422:42: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/rte-ring.c:134:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rte-ring.c:169:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/rte-ring.c:389:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/scripting-banner.c:54:11: style: Variable 'pstate->state' is assigned an expression that holds the same value. [redundantAssignment] masscan-1.3.2/src/scripting-banner.c:44:20: note: state is assigned 'pstate->state' here. masscan-1.3.2/src/scripting-banner.c:54:11: note: Variable 'pstate->state' is assigned an expression that holds the same value. masscan-1.3.2/src/scripting-banner.c:82:23: style: Variable 'range' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/scripting-masscan.c:68:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mass_setconfig [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/smack1.c:395:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/smack1.c:420:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/smack1.c:448:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/smack1.c:565:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/smack1.c:657:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/smack1.c:699:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/smack1.c:1005:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/smack1.c:1657:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/smack1.c:1570:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] masscan-1.3.2/src/smack1.c:1568:24: note: Assuming allocation function fails masscan-1.3.2/src/smack1.c:1568:11: note: Assignment 'buf=(char*)malloc(BUF_SIZE)', assigned value is 0 masscan-1.3.2/src/smack1.c:1570:9: note: Null pointer dereference masscan-1.3.2/src/smack1.c:685:21: style:inconclusive: Function 'smack_add_pattern' argument 2 names different: declaration 'pattern' definition 'v_pattern'. [funcArgNamesDifferent] masscan-1.3.2/src/smack.h:58:41: note: Function 'smack_add_pattern' argument 2 names different: declaration 'pattern' definition 'v_pattern'. masscan-1.3.2/src/smack1.c:685:21: note: Function 'smack_add_pattern' argument 2 names different: declaration 'pattern' definition 'v_pattern'. masscan-1.3.2/src/smack1.c:1256:29: style:inconclusive: Function 'smack_search' argument 2 names different: declaration 'px' definition 'v_px'. [funcArgNamesDifferent] masscan-1.3.2/src/smack.h:90:41: note: Function 'smack_search' argument 2 names different: declaration 'px' definition 'v_px'. masscan-1.3.2/src/smack1.c:1256:29: note: Function 'smack_search' argument 2 names different: declaration 'px' definition 'v_px'. masscan-1.3.2/src/smack1.c:1259:23: style:inconclusive: Function 'smack_search' argument 5 names different: declaration 'cb_data' definition 'callback_data'. [funcArgNamesDifferent] masscan-1.3.2/src/smack.h:93:41: note: Function 'smack_search' argument 5 names different: declaration 'cb_data' definition 'callback_data'. masscan-1.3.2/src/smack1.c:1259:23: note: Function 'smack_search' argument 5 names different: declaration 'cb_data' definition 'callback_data'. masscan-1.3.2/src/smack1.c:1260:27: style:inconclusive: Function 'smack_search' argument 6 names different: declaration 'state' definition 'current_state'. [funcArgNamesDifferent] masscan-1.3.2/src/smack.h:94:41: note: Function 'smack_search' argument 6 names different: declaration 'state' definition 'current_state'. masscan-1.3.2/src/smack1.c:1260:27: note: Function 'smack_search' argument 6 names different: declaration 'state' definition 'current_state'. masscan-1.3.2/src/smack1.c:1400:41: style:inconclusive: Function 'smack_search_next' argument 2 names different: declaration 'state' definition 'current_state'. [funcArgNamesDifferent] masscan-1.3.2/src/smack.h:98:41: note: Function 'smack_search_next' argument 2 names different: declaration 'state' definition 'current_state'. masscan-1.3.2/src/smack1.c:1400:41: note: Function 'smack_search_next' argument 2 names different: declaration 'state' definition 'current_state'. masscan-1.3.2/src/smack1.c:1401:41: style:inconclusive: Function 'smack_search_next' argument 3 names different: declaration 'px' definition 'v_px'. [funcArgNamesDifferent] masscan-1.3.2/src/smack.h:99:41: note: Function 'smack_search_next' argument 3 names different: declaration 'px' definition 'v_px'. masscan-1.3.2/src/smack1.c:1401:41: note: Function 'smack_search_next' argument 3 names different: declaration 'px' definition 'v_px'. masscan-1.3.2/src/smack1.c:1482:49: style:inconclusive: Function 'smack_next_match' argument 2 names different: declaration 'state' definition 'current_state'. [funcArgNamesDifferent] masscan-1.3.2/src/smack.h:110:41: note: Function 'smack_next_match' argument 2 names different: declaration 'state' definition 'current_state'. masscan-1.3.2/src/smack1.c:1482:49: note: Function 'smack_next_match' argument 2 names different: declaration 'state' definition 'current_state'. masscan-1.3.2/src/smack1.c:1510:41: style:inconclusive: Function 'smack_search_end' argument 3 names different: declaration 'cb_data' definition 'callback_data'. [funcArgNamesDifferent] masscan-1.3.2/src/smack.h:121:41: note: Function 'smack_search_end' argument 3 names different: declaration 'cb_data' definition 'callback_data'. masscan-1.3.2/src/smack1.c:1510:41: note: Function 'smack_search_end' argument 3 names different: declaration 'cb_data' definition 'callback_data'. masscan-1.3.2/src/smack1.c:1511:41: style:inconclusive: Function 'smack_search_end' argument 4 names different: declaration 'state' definition 'current_state'. [funcArgNamesDifferent] masscan-1.3.2/src/smack.h:122:41: note: Function 'smack_search_end' argument 4 names different: declaration 'state' definition 'current_state'. masscan-1.3.2/src/smack1.c:1511:41: note: Function 'smack_search_end' argument 4 names different: declaration 'state' definition 'current_state'. masscan-1.3.2/src/smack1.c:558:13: style: Variable 'old_ids' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/smack1.c:788:20: style: Variable 'pattern' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/smack1.c:989:20: style: Variable 'char_to_symbol' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/smack1.c:1102:30: style: Variable 'pat' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/smack1.c:1166:30: style: Variable 'pat' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/smack1.c:1399:41: style: Parameter 'smack' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/smack1.c:1482:32: style: Parameter 'smack' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/smackqueue.c:27:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/smackqueue.c:51:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/smackqueue.c:87:46: style: Parameter 'queue' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/stack-ndpv6.c:444:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/stack-ndpv6.c:315:19: style:inconclusive: Function 'stack_ndpv6_resolve' argument 4 names different: declaration 'your_mac_address' definition 'router_mac'. [funcArgNamesDifferent] masscan-1.3.2/src/stack-ndpv6.h:34:19: note: Function 'stack_ndpv6_resolve' argument 4 names different: declaration 'your_mac_address' definition 'router_mac'. masscan-1.3.2/src/stack-ndpv6.c:315:19: note: Function 'stack_ndpv6_resolve' argument 4 names different: declaration 'your_mac_address' definition 'router_mac'. masscan-1.3.2/src/stack-ndpv6.c:95:78: style: Parameter 'parsed' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/stack-queue.c:31:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/stack-queue.c:83:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/stack-queue.c:122:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/stack-src.c:20:56: style:inconclusive: Function 'is_my_port' argument 2 names different: declaration 'ip' definition 'port'. [funcArgNamesDifferent] masscan-1.3.2/src/stack-src.h:31:56: note: Function 'is_my_port' argument 2 names different: declaration 'ip' definition 'port'. masscan-1.3.2/src/stack-src.c:20:56: note: Function 'is_my_port' argument 2 names different: declaration 'ip' definition 'port'. masscan-1.3.2/src/string_s.c:22:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/string_s.c:56:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/string_s.c:89:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] masscan-1.3.2/src/string_s.c:102:9: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] masscan-1.3.2/src/string_s.c:87:16: style: Variable 'x' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/string_s.c:100:16: style: Variable 'x' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/stub-lua.c:61:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/stub-pcap.c:259:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/stub-pcap.c:76:35: style: Parameter 'hPcap' can be declared as pointer to const. However it seems that 'null_PCAP_CLOSE' is a callback function, if 'hPcap' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:406:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:76:35: note: Parameter 'hPcap' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:96:59: style: Parameter 'errbuf' can be declared as pointer to const. However it seems that 'null_PCAP_CREATE' is a callback function, if 'errbuf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:439:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:96:59: note: Parameter 'errbuf' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:97:42: style: Parameter 'p' can be declared as pointer to const. However it seems that 'null_PCAP_SET_SNAPLEN' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:440:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:97:42: note: Parameter 'p' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:98:42: style: Parameter 'p' can be declared as pointer to const. However it seems that 'null_PCAP_SET_PROMISC' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:441:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:98:42: note: Parameter 'p' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:99:42: style: Parameter 'p' can be declared as pointer to const. However it seems that 'null_PCAP_SET_TIMEOUT' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:442:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:99:42: note: Parameter 'p' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:100:49: style: Parameter 'p' can be declared as pointer to const. However it seems that 'null_PCAP_SET_IMMEDIATE_MODE' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:443:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:100:49: note: Parameter 'p' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:101:46: style: Parameter 'p' can be declared as pointer to const. However it seems that 'null_PCAP_SET_BUFFER_SIZE' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:444:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:101:46: note: Parameter 'p' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:102:40: style: Parameter 'p' can be declared as pointer to const. However it seems that 'null_PCAP_SET_RFMON' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:445:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:102:40: note: Parameter 'p' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:103:44: style: Parameter 'p' can be declared as pointer to const. However it seems that 'null_PCAP_CAN_SET_RFMON' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:446:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:103:44: note: Parameter 'p' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:104:39: style: Parameter 'p' can be declared as pointer to const. However it seems that 'null_PCAP_ACTIVATE' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:447:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:104:39: note: Parameter 'p' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:107:42: style: Parameter 'hPcap' can be declared as pointer to const. However it seems that 'null_PCAP_DATALINK' is a callback function, if 'hPcap' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:407:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:107:42: note: Parameter 'hPcap' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:117:42: style: Parameter 'hPcap' can be declared as pointer to const. However it seems that 'null_PCAP_DISPATCH' is a callback function, if 'hPcap' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:408:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:117:42: note: Parameter 'hPcap' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:117:110: style: Parameter 'handle_data' can be declared as pointer to const. However it seems that 'null_PCAP_DISPATCH' is a callback function, if 'handle_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:408:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:117:110: note: Parameter 'handle_data' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:138:46: style: Parameter 'alldevs' can be declared as pointer to const. However it seems that 'null_PCAP_FREEALLDEVS' is a callback function, if 'alldevs' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:410:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:138:46: note: Parameter 'alldevs' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:168:42: style: Parameter 'p' can be declared as pointer to const. However it seems that 'null_PCAP_MAJOR_VERSION' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:413:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:168:42: note: Parameter 'p' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:178:42: style: Parameter 'p' can be declared as pointer to const. However it seems that 'null_PCAP_MINOR_VERSION' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:414:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:178:42: note: Parameter 'p' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:252:47: style: Parameter 'prefix' can be declared as pointer to const. However it seems that 'null_PCAP_PERROR' is a callback function, if 'prefix' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:422:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:252:47: note: Parameter 'prefix' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:262:44: style: Parameter 'p' can be declared as pointer to const. However it seems that 'null_PCAP_GETERR' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/stub-pcap.c:423:5: note: You might need to cast the function pointer here masscan-1.3.2/src/stub-pcap.c:262:44: note: Parameter 'p' can be declared as pointer to const masscan-1.3.2/src/stub-pcap.c:390:13: warning: Uninitialized variable: hLibpcap [uninitvar] masscan-1.3.2/src/stub-pcap.c:380:33: note: Assuming condition is false masscan-1.3.2/src/stub-pcap.c:390:13: note: Uninitialized variable: hLibpcap masscan-1.3.2/src/stub-pcap.c:62:12: style: struct member 'pcap_if::addresses' is never used. [unusedStructMember] masscan-1.3.2/src/stub-pcap.c:63:14: style: struct member 'pcap_if::flags' is never used. [unusedStructMember] masscan-1.3.2/src/syn-cookie.c:115:23: style:inconclusive: Function 'syn_cookie' argument 1 names different: declaration 'ip_dst' definition 'ip_them'. [funcArgNamesDifferent] masscan-1.3.2/src/syn-cookie.h:16:23: note: Function 'syn_cookie' argument 1 names different: declaration 'ip_dst' definition 'ip_them'. masscan-1.3.2/src/syn-cookie.c:115:23: note: Function 'syn_cookie' argument 1 names different: declaration 'ip_dst' definition 'ip_them'. masscan-1.3.2/src/syn-cookie.c:115:41: style:inconclusive: Function 'syn_cookie' argument 2 names different: declaration 'port_dst' definition 'port_them'. [funcArgNamesDifferent] masscan-1.3.2/src/syn-cookie.h:16:40: note: Function 'syn_cookie' argument 2 names different: declaration 'port_dst' definition 'port_them'. masscan-1.3.2/src/syn-cookie.c:115:41: note: Function 'syn_cookie' argument 2 names different: declaration 'port_dst' definition 'port_them'. masscan-1.3.2/src/syn-cookie.c:116:23: style:inconclusive: Function 'syn_cookie' argument 3 names different: declaration 'ip_src' definition 'ip_me'. [funcArgNamesDifferent] masscan-1.3.2/src/syn-cookie.h:17:23: note: Function 'syn_cookie' argument 3 names different: declaration 'ip_src' definition 'ip_me'. masscan-1.3.2/src/syn-cookie.c:116:23: note: Function 'syn_cookie' argument 3 names different: declaration 'ip_src' definition 'ip_me'. masscan-1.3.2/src/syn-cookie.c:116:39: style:inconclusive: Function 'syn_cookie' argument 4 names different: declaration 'port_src' definition 'port_me'. [funcArgNamesDifferent] masscan-1.3.2/src/syn-cookie.h:17:40: note: Function 'syn_cookie' argument 4 names different: declaration 'port_src' definition 'port_me'. masscan-1.3.2/src/syn-cookie.c:116:39: note: Function 'syn_cookie' argument 4 names different: declaration 'port_src' definition 'port_me'. masscan-1.3.2/src/syn-cookie.c:133:27: style:inconclusive: Function 'syn_cookie_ipv4' argument 1 names different: declaration 'ip_dst' definition 'ip_them'. [funcArgNamesDifferent] masscan-1.3.2/src/syn-cookie.h:11:27: note: Function 'syn_cookie_ipv4' argument 1 names different: declaration 'ip_dst' definition 'ip_them'. masscan-1.3.2/src/syn-cookie.c:133:27: note: Function 'syn_cookie_ipv4' argument 1 names different: declaration 'ip_dst' definition 'ip_them'. masscan-1.3.2/src/syn-cookie.c:133:45: style:inconclusive: Function 'syn_cookie_ipv4' argument 2 names different: declaration 'port_dst' definition 'port_them'. [funcArgNamesDifferent] masscan-1.3.2/src/syn-cookie.h:11:44: note: Function 'syn_cookie_ipv4' argument 2 names different: declaration 'port_dst' definition 'port_them'. masscan-1.3.2/src/syn-cookie.c:133:45: note: Function 'syn_cookie_ipv4' argument 2 names different: declaration 'port_dst' definition 'port_them'. masscan-1.3.2/src/syn-cookie.c:134:22: style:inconclusive: Function 'syn_cookie_ipv4' argument 3 names different: declaration 'ip_src' definition 'ip_me'. [funcArgNamesDifferent] masscan-1.3.2/src/syn-cookie.h:12:22: note: Function 'syn_cookie_ipv4' argument 3 names different: declaration 'ip_src' definition 'ip_me'. masscan-1.3.2/src/syn-cookie.c:134:22: note: Function 'syn_cookie_ipv4' argument 3 names different: declaration 'ip_src' definition 'ip_me'. masscan-1.3.2/src/syn-cookie.c:134:38: style:inconclusive: Function 'syn_cookie_ipv4' argument 4 names different: declaration 'port_src' definition 'port_me'. [funcArgNamesDifferent] masscan-1.3.2/src/syn-cookie.h:12:39: note: Function 'syn_cookie_ipv4' argument 4 names different: declaration 'port_src' definition 'port_me'. masscan-1.3.2/src/syn-cookie.c:134:38: note: Function 'syn_cookie_ipv4' argument 4 names different: declaration 'port_src' definition 'port_me'. masscan-1.3.2/src/syn-cookie.c:153:30: style:inconclusive: Function 'syn_cookie_ipv6' argument 1 names different: declaration 'ip_dst' definition 'ip_them'. [funcArgNamesDifferent] masscan-1.3.2/src/syn-cookie.h:21:30: note: Function 'syn_cookie_ipv6' argument 1 names different: declaration 'ip_dst' definition 'ip_them'. masscan-1.3.2/src/syn-cookie.c:153:30: note: Function 'syn_cookie_ipv6' argument 1 names different: declaration 'ip_dst' definition 'ip_them'. masscan-1.3.2/src/syn-cookie.c:153:48: style:inconclusive: Function 'syn_cookie_ipv6' argument 2 names different: declaration 'port_dst' definition 'port_them'. [funcArgNamesDifferent] masscan-1.3.2/src/syn-cookie.h:21:47: note: Function 'syn_cookie_ipv6' argument 2 names different: declaration 'port_dst' definition 'port_them'. masscan-1.3.2/src/syn-cookie.c:153:48: note: Function 'syn_cookie_ipv6' argument 2 names different: declaration 'port_dst' definition 'port_them'. masscan-1.3.2/src/syn-cookie.c:154:25: style:inconclusive: Function 'syn_cookie_ipv6' argument 3 names different: declaration 'ip_src' definition 'ip_me'. [funcArgNamesDifferent] masscan-1.3.2/src/syn-cookie.h:22:25: note: Function 'syn_cookie_ipv6' argument 3 names different: declaration 'ip_src' definition 'ip_me'. masscan-1.3.2/src/syn-cookie.c:154:25: note: Function 'syn_cookie_ipv6' argument 3 names different: declaration 'ip_src' definition 'ip_me'. masscan-1.3.2/src/syn-cookie.c:154:41: style:inconclusive: Function 'syn_cookie_ipv6' argument 4 names different: declaration 'port_src' definition 'port_me'. [funcArgNamesDifferent] masscan-1.3.2/src/syn-cookie.h:22:42: note: Function 'syn_cookie_ipv6' argument 4 names different: declaration 'port_src' definition 'port_me'. masscan-1.3.2/src/syn-cookie.c:154:41: note: Function 'syn_cookie_ipv6' argument 4 names different: declaration 'port_src' definition 'port_me'. masscan-1.3.2/src/templ-payloads.c:565:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/templ-payloads.c:691:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/templ-payloads.c:405:17: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] masscan-1.3.2/src/templ-payloads.c:418:17: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] masscan-1.3.2/src/templ-payloads.c:468:15: style: Variable 'p' can be declared as pointer to const [constVariablePointer] masscan-1.3.2/src/templ-payloads.c:495:31: style: Parameter 'ports' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/templ-payloads.c:36:14: style: struct member 'PayloadUDP_Item::rarity' is never used. [unusedStructMember] masscan-1.3.2/src/templ-pkt.c:439:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/templ-pkt.c:1159:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/templ-pkt.c:1538:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/templ-pkt.c:1312:9: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] masscan-1.3.2/src/templ-pkt.c:350:57: style:inconclusive: Function 'templ_copy' argument 1 names different: declaration 'templ' definition 'templset'. [funcArgNamesDifferent] masscan-1.3.2/src/templ-pkt.h:84:57: note: Function 'templ_copy' argument 1 names different: declaration 'templ' definition 'templset'. masscan-1.3.2/src/templ-pkt.c:350:57: note: Function 'templ_copy' argument 1 names different: declaration 'templ' definition 'templset'. masscan-1.3.2/src/templ-pkt.c:419:32: style:inconclusive: Function 'tcp_create_packet' argument 1 names different: declaration 'pkt' definition 'tmpl'. [funcArgNamesDifferent] masscan-1.3.2/src/templ-pkt.h:172:32: note: Function 'tcp_create_packet' argument 1 names different: declaration 'pkt' definition 'tmpl'. masscan-1.3.2/src/templ-pkt.c:419:32: note: Function 'tcp_create_packet' argument 1 names different: declaration 'pkt' definition 'tmpl'. masscan-1.3.2/src/templ-pkt.c:661:25: style:inconclusive: Function 'template_set_target_ipv6' argument 1 names different: declaration 'templset' definition 'tmplset'. [funcArgNamesDifferent] masscan-1.3.2/src/templ-pkt.h:159:25: note: Function 'template_set_target_ipv6' argument 1 names different: declaration 'templset' definition 'tmplset'. masscan-1.3.2/src/templ-pkt.c:661:25: note: Function 'template_set_target_ipv6' argument 1 names different: declaration 'templset' definition 'tmplset'. masscan-1.3.2/src/templ-pkt.c:876:25: style:inconclusive: Function 'template_set_target_ipv4' argument 1 names different: declaration 'templset' definition 'tmplset'. [funcArgNamesDifferent] masscan-1.3.2/src/templ-pkt.h:151:25: note: Function 'template_set_target_ipv4' argument 1 names different: declaration 'templset' definition 'tmplset'. masscan-1.3.2/src/templ-pkt.c:876:25: note: Function 'template_set_target_ipv4' argument 1 names different: declaration 'templset' definition 'tmplset'. masscan-1.3.2/src/templ-pkt.c:306:42: style: Parameter 'tmpl' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/templ-pkt.c:339:43: style: Parameter 'tmpl' can be declared as pointer to const [constParameterPointer] masscan-1.3.2/src/util-malloc.c:15:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/util-malloc.c:38:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/util-malloc.c:75:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/util-malloc.c:92:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/util-malloc.c:111:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] masscan-1.3.2/src/util-malloc.c:107:22: warning: Either the condition 'str!=NULL' is redundant or there is possible null pointer dereference: str. [nullPointerRedundantCheck] masscan-1.3.2/src/util-malloc.c:110:26: note: Assuming that condition 'str!=NULL' is not redundant masscan-1.3.2/src/util-malloc.c:107:22: note: Null pointer dereference masscan-1.3.2/src/versioning.c:44:11: style: Variable 'pstate->state' is assigned an expression that holds the same value. [redundantAssignment] masscan-1.3.2/src/versioning.c:34:20: note: state is assigned 'pstate->state' here. masscan-1.3.2/src/versioning.c:44:11: note: Variable 'pstate->state' is assigned an expression that holds the same value. masscan-1.3.2/src/versioning.c:50:33: style: Parameter 'b' can be declared as pointer to const. However it seems that 'versioning_init' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s). [constParameterCallback] masscan-1.3.2/src/versioning.c:96:5: note: You might need to cast the function pointer here masscan-1.3.2/src/versioning.c:50:33: note: Parameter 'b' can be declared as pointer to const masscan-1.3.2/src/xring.c:199:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] diff: head masscan-1.3.2/src/pixie-threads.c:176:2: error: #error need to find CPU count [preprocessorErrorDirective] DONE