2026-05-04 04:57 ftp://ftp.de.debian.org/debian/pool/main/p/packeth/packeth_3.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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.12.85+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.70 compiler: g++ (20250906) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 198 186 elapsed-time: 6.3 5.5 head-timing-info: old-timing-info: head results: packETH-3.0/cli/cli_send.c:220:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] packETH-3.0/cli/cli_send.c:712:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] packETH-3.0/cli/cli_send.c:1327:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] packETH-3.0/cli/cli_send.c:1433:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] packETH-3.0/cli/cli_send.c:1559:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETH_P_ALL [valueFlowBailoutIncompleteVar] packETH-3.0/cli/cli_send.c:1698:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] packETH-3.0/cli/cli_send.c:1714:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] packETH-3.0/cli/cli_send.c:1826:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_TCP [valueFlowBailoutIncompleteVar] packETH-3.0/cli/cli_send.c:2041:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] packETH-3.0/cli/cli_send.c:231:50: style: Condition 'params1.attack<0' is always false [knownConditionTrueFalse] packETH-3.0/cli/cli_send.c:227:37: note: Assuming that condition 'params1.attack<1' is not redundant packETH-3.0/cli/cli_send.c:231:50: note: Condition 'params1.attack<0' is always false packETH-3.0/cli/cli_send.c:231:72: style: Condition 'params1.attack>4' is always false [knownConditionTrueFalse] packETH-3.0/cli/cli_send.c:227:61: note: Assuming that condition 'params1.attack>4' is not redundant packETH-3.0/cli/cli_send.c:231:72: note: Condition 'params1.attack>4' is always false packETH-3.0/cli/cli_send.c:971:61: style: Condition 'params1.stoprate>100000000' is always false [knownConditionTrueFalse] packETH-3.0/cli/cli_send.c:971:27: note: Assuming that condition 'params1.stoprate>100000000' is not redundant packETH-3.0/cli/cli_send.c:971:61: note: Condition 'params1.stoprate>100000000' is always false packETH-3.0/cli/cli_send.c:752:23: style: Redundant assignment of 'params1.delay' to itself. [selfAssignment] packETH-3.0/cli/cli_send.c:971:40: style: Same expression on both sides of '||'. [duplicateExpression] packETH-3.0/cli/cli_send.c:1037:23: style: Redundant assignment of 'params1.delay' to itself. [selfAssignment] packETH-3.0/cli/cli_send.c:1987:23: style: Redundant assignment of 'params1.delay' to itself. [selfAssignment] packETH-3.0/cli/cli_send.c:244:17: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] packETH-3.0/cli/cli_send.c:1722:17: style:inconclusive: Function 'onexit' argument 1 names different: declaration '' definition 'signum'. [funcArgNamesDifferentUnnamed] packETH-3.0/cli/cli_send.c:1625:33: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] packETH-3.0/cli/cli_send.c:1702:65: style: Parameter 'interface_name' can be declared as pointer to const [constParameterPointer] packETH-3.0/cli/cli_send.c:1828:21: style: Variable 'ether_dhost' can be declared as const array [constVariable] packETH-3.0/cli/cli_send.c:1829:21: style: Variable 'ether_shost' can be declared as const array [constVariable] packETH-3.0/cli/cli_send.c:59:18: style: struct member 'pcap_hdr::version_major' is never used. [unusedStructMember] packETH-3.0/cli/cli_send.c:60:18: style: struct member 'pcap_hdr::version_minor' is never used. [unusedStructMember] packETH-3.0/cli/cli_send.c:61:18: style: struct member 'pcap_hdr::thiszone' is never used. [unusedStructMember] packETH-3.0/cli/cli_send.c:62:18: style: struct member 'pcap_hdr::sigfigs' is never used. [unusedStructMember] packETH-3.0/cli/cli_send.c:63:18: style: struct member 'pcap_hdr::snaplen' is never used. [unusedStructMember] packETH-3.0/cli/cli_send.c:64:18: style: struct member 'pcap_hdr::network' is never used. [unusedStructMember] packETH-3.0/cli/cli_send.c:69:18: style: struct member 'pcaprec_hdr::ts_sec' is never used. [unusedStructMember] packETH-3.0/cli/cli_send.c:70:18: style: struct member 'pcaprec_hdr::ts_usec' is never used. [unusedStructMember] packETH-3.0/cli/cli_send.c:72:18: style: struct member 'pcaprec_hdr::orig_len' is never used. [unusedStructMember] packETH-3.0/cli/cli_send.c:1820:18: style: struct member 'Anonymous0::src_addr' is never used. [unusedStructMember] packETH-3.0/cli/cli_send.c:1821:18: style: struct member 'Anonymous0::dst_addr' is never used. [unusedStructMember] packETH-3.0/cli/cli_send.c:1822:17: style: struct member 'Anonymous0::zero' is never used. [unusedStructMember] packETH-3.0/cli/cli_send.c:456:23: style: Variable 'recv_size' is assigned a value that is never used. [unreadVariable] packETH-3.0/cli/cli_send.c:460:24: style: Variable 'gap' is assigned a value that is never used. [unreadVariable] packETH-3.0/cli/cli_send.c:462:45: style: Variable 'current_value' is assigned a value that is never used. [unreadVariable] packETH-3.0/cli/cli_send.c:1319:26: style: Variable 'gap2' is assigned a value that is never used. [unreadVariable] packETH-3.0/cli/cli_send.c:1319:35: style: Variable 'gap2s' is assigned a value that is never used. [unreadVariable] packETH-3.0/cli/cli_send.c:1319:44: style: Variable 'gap3s' is assigned a value that is never used. [unreadVariable] packETH-3.0/cli/cli_send.c:1334:9: style: Variable 'gap' is assigned a value that is never used. [unreadVariable] packETH-3.0/cli/cli_send.c:1362:17: style: Variable 'gap' is assigned a value that is never used. [unreadVariable] packETH-3.0/cli/cli_send.c:1426:26: style: Variable 'gap2' is assigned a value that is never used. [unreadVariable] packETH-3.0/cli/cli_send.c:1426:35: style: Variable 'gap2s' is assigned a value that is never used. [unreadVariable] packETH-3.0/cli/cli_send.c:1426:44: style: Variable 'gap3s' is assigned a value that is never used. [unreadVariable] packETH-3.0/cli/cli_send.c:1440:9: style: Variable 'gap' is assigned a value that is never used. [unreadVariable] packETH-3.0/cli/cli_send.c:1447:15: style: Variable 'c' is assigned a value that is never used. [unreadVariable] packETH-3.0/cli/cli_send.c:1467:17: style: Variable 'gap' is assigned a value that is never used. [unreadVariable] packETH-3.0/cli/cli_send.c:1544:10: style: Variable 'i' is assigned a value that is never used. [unreadVariable] packETH-3.0/cli/cli_send.c:1767:18: style: Variable 'tmp' is assigned a value that is never used. [unreadVariable] packETH-3.0/cli/parse_snort_rules.c:36:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] packETH-3.0/cli/parse_snort_rules.c:126:6: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] packETH-3.0/cli/parse_snort_rules.c:25:28: style:inconclusive: Function 'readSnortRules' argument 1 names different: declaration '' definition 'filename'. [funcArgNamesDifferentUnnamed] packETH-3.0/cli/parse_snort_rules.c:196:18: style:inconclusive: Function 'cleanupRules' argument 1 names different: declaration '' definition 'num_rules'. [funcArgNamesDifferentUnnamed] packETH-3.0/cli/parse_snort_rules.c:28:38: style: Variable 'end' is not assigned a value. [unassignedVariable] packETH-3.0/cli/parse_snort_rules.c:28:44: style: Variable 'pcre' is not assigned a value. [unassignedVariable] packETH-3.0/src/callbacks.c:951:85: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] packETH-3.0/src/callbacks.c:1133:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIOCGIFHWADDR [valueFlowBailoutIncompleteVar] packETH-3.0/src/callbacks.c:2171:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIOCGIFCONF [valueFlowBailoutIncompleteVar] packETH-3.0/src/callbacks.c:2988:2: warning:inconclusive: The buffer 'address_filename' may not be null-terminated after the call to strncpy(). [terminateStrncpy] packETH-3.0/src/callbacks.c:3324:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] packETH-3.0/src/callbacks.c:2579:26: style: Condition 'atoll(timestamp_t)>0xFFFFFFFF' is always false [knownConditionTrueFalse] packETH-3.0/src/callbacks.c:2563:26: note: Assuming that condition 'atoll(timestamp_t)>0xFFFFFFFF' is not redundant packETH-3.0/src/callbacks.c:2576:74: note: Assuming condition is false packETH-3.0/src/callbacks.c:2579:26: note: Condition 'atoll(timestamp_t)>0xFFFFFFFF' is always false packETH-3.0/src/callbacks.c:3110:17: style: Condition 'tos_value<0' is always false [knownConditionTrueFalse] packETH-3.0/src/callbacks.c:3109:15: note: Assignment 'tos_value=(unsigned char)strtol(en_t,(char**)NULL,10)', assigned value is greater than -1 packETH-3.0/src/callbacks.c:3110:17: note: Condition 'tos_value<0' is always false packETH-3.0/src/callbacks.c:381:17: error: Memory leak: fname [memleak] packETH-3.0/src/callbacks.c:543:3: error: Memory leak: fname [memleak] packETH-3.0/src/callbacks.c:559:4: error: Memory leak: fname [memleak] packETH-3.0/src/callbacks.c:567:4: error: Memory leak: fname [memleak] packETH-3.0/src/callbacks.c:575:4: error: Memory leak: fname [memleak] packETH-3.0/src/callbacks.c:583:4: error: Memory leak: fname [memleak] packETH-3.0/src/callbacks.c:588:3: error: Memory leak: fname [memleak] packETH-3.0/src/callbacks.c:588:3: error: Resource leak: file_p [resourceLeak] packETH-3.0/src/callbacks.c:597:2: error: Memory leak: fname [memleak] packETH-3.0/src/callbacks.c:1162:17: error: Resource leak: s [resourceLeak] packETH-3.0/src/callbacks.c:2174:3: error: Resource leak: fd [resourceLeak] packETH-3.0/src/callbacks.c:2981:3: error: Memory leak: fname [memleak] packETH-3.0/src/callbacks.c:2985:3: error: Memory leak: fname [memleak] packETH-3.0/src/callbacks.c:2999:1: error: Memory leak: fname [memleak] packETH-3.0/src/callbacks.c:267:10: style: Variable 'lbl_pid' is reassigned a value before the old one has been used. [redundantAssignment] packETH-3.0/src/callbacks.c:266:10: note: lbl_pid is assigned packETH-3.0/src/callbacks.c:267:10: note: lbl_pid is overwritten packETH-3.0/src/callbacks.c:86:24: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] packETH-3.0/src/callbacks.c:322:58: style: Parameter 'menuitem' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:323:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:346:58: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:347:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:354:58: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:355:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:372:9: style: Variable 'fname' can be declared as pointer to const [constVariablePointer] packETH-3.0/src/callbacks.c:520:9: style: Variable 'fname' can be declared as pointer to const [constVariablePointer] packETH-3.0/src/callbacks.c:612:58: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:613:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:657:30: style: Variable 'en_name_t' can be declared as pointer to const [constVariablePointer] packETH-3.0/src/callbacks.c:870:58: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:871:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:1915:16: style: Variable 'en2_t' can be declared as pointer to const [constVariablePointer] packETH-3.0/src/callbacks.c:1962:58: style: Parameter 'button' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:1963:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:2048:16: style: Variable 'en2_t' can be declared as pointer to const [constVariablePointer] packETH-3.0/src/callbacks.c:2096:58: style: Parameter 'button' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:2097:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:2143:23: style: Variable 'pif' can be declared as pointer to const [constVariablePointer] packETH-3.0/src/callbacks.c:2235:58: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:2236:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:2252:58: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:2253:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:2258:19: style: Parameter 'error_type' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:2288:17: style: Variable 'en2_t' can be declared as pointer to const [constVariablePointer] packETH-3.0/src/callbacks.c:2422:58: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:2423:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:2449:32: style: Variable 'rtp_payload_t' can be declared as pointer to const [constVariablePointer] packETH-3.0/src/callbacks.c:2659:17: style: Variable 'en2_t' can be declared as pointer to const [constVariablePointer] packETH-3.0/src/callbacks.c:2707:58: style: Parameter 'button' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:2708:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:2714:58: style: Parameter 'button' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:2715:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:2974:9: style: Variable 'fname' can be declared as pointer to const [constVariablePointer] packETH-3.0/src/callbacks.c:3012:58: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:3013:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:3022:58: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:3023:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:3040:58: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:3041:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:3082:9: style: Variable 'en_t' can be declared as pointer to const [constVariablePointer] packETH-3.0/src/callbacks.c:3149:58: style: Parameter 'editable' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:3150:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:3209:58: style: Parameter 'editable' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:3210:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:3357:58: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:3358:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:3691:58: style: Parameter 'button' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:3692:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:3706:16: style: Variable 'mbps_t' can be declared as pointer to const [constVariablePointer] packETH-3.0/src/callbacks.c:4493:58: style: Parameter 'button' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:4494:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:4623:58: style: Parameter 'menuitem' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:4624:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:4632:59: style: Parameter 'menuitem' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:4633:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:4640:58: style: Parameter 'menuitem' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:4641:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:4649:59: style: Parameter 'menuitem' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:4650:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:4658:59: style: Parameter 'menuitem' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:4659:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:4912:58: style: Parameter 'togglebutton' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:4913:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/callbacks.c:2184:12: error: Uninitialized variable: length [uninitvar] packETH-3.0/src/callbacks.c:908:7: style: Variable 'i' is assigned a value that is never used. [unreadVariable] packETH-3.0/src/callbacks.c:908:21: style: Variable 'first' is assigned a value that is never used. [unreadVariable] packETH-3.0/src/callbacks.c:908:33: style: Variable 'second' is assigned a value that is never used. [unreadVariable] packETH-3.0/src/callbacks.c:908:43: style: Variable 'third' is assigned a value that is never used. [unreadVariable] packETH-3.0/src/function.c:868:50: error: There is an unknown macro here somewhere. Configuration is required. If MAX_MTU_STR is a macro then please configure it. [unknownMacro] packETH-3.0/src/function_send.c:120:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETH_P_ALL [valueFlowBailoutIncompleteVar] packETH-3.0/src/function_send.c:203:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] packETH-3.0/src/function_send.c:774:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] packETH-3.0/src/function_send.c:998:19: style: Condition 'stop_flag==1' is always false [knownConditionTrueFalse] packETH-3.0/src/function_send.c:105:42: style:inconclusive: Function 'packet_go_on_the_link' argument 1 names different: declaration 'packet' definition 'pkt'. [funcArgNamesDifferent] packETH-3.0/src/function_send.h:21:42: note: Function 'packet_go_on_the_link' argument 1 names different: declaration 'packet' definition 'pkt'. packETH-3.0/src/function_send.c:105:42: note: Function 'packet_go_on_the_link' argument 1 names different: declaration 'packet' definition 'pkt'. packETH-3.0/src/function_send.c:105:51: style:inconclusive: Function 'packet_go_on_the_link' argument 2 names different: declaration 'number' definition 'nr'. [funcArgNamesDifferent] packETH-3.0/src/function_send.h:21:54: note: Function 'packet_go_on_the_link' argument 2 names different: declaration 'number' definition 'nr'. packETH-3.0/src/function_send.c:105:51: note: Function 'packet_go_on_the_link' argument 2 names different: declaration 'number' definition 'nr'. packETH-3.0/src/function_send.c:178:24: style:inconclusive: Function 'sendbuilt' argument 1 names different: declaration '' definition 'parameters'. [funcArgNamesDifferentUnnamed] packETH-3.0/src/function_send.c:755:27: style:inconclusive: Function 'sendsequence' argument 1 names different: declaration '' definition 'parameters'. [funcArgNamesDifferentUnnamed] packETH-3.0/src/function_send.c:105:42: style: Parameter 'pkt' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/function_send.c:182:27: style: Variable 'gap1s' is assigned a value that is never used. [unreadVariable] packETH-3.0/src/function_send.c:210:6: style: Variable 'gap' is assigned a value that is never used. [unreadVariable] packETH-3.0/src/function_send.c:299:10: style: Variable 'gap1s' is assigned a value that is never used. [unreadVariable] packETH-3.0/src/function_send.c:401:8: style: Variable 'gap' is assigned a value that is never used. [unreadVariable] packETH-3.0/src/interface.c:23:11: style: Local variable 'error' shadows outer function [shadowFunction] packETH-3.0/src/callbacks.h:26:6: note: Shadowed declaration packETH-3.0/src/interface.c:23:11: note: Shadow variable packETH-3.0/src/loadpacket.c:67:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] packETH-3.0/src/loadpacket.c:169:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] packETH-3.0/src/loadpacket.c:182:9: warning: Either the condition 'j<200' is redundant or the array 'buffc[11][200]' is accessed at index buffc[*][200], which is out of bounds. [arrayIndexOutOfBoundsCond] packETH-3.0/src/loadpacket.c:179:30: note: Assuming that condition 'j<200' is not redundant packETH-3.0/src/loadpacket.c:181:4: note: j is incremented', new value is 200 packETH-3.0/src/loadpacket.c:182:9: note: Array index out of bounds packETH-3.0/src/loadpacket.c:708:14: style: Condition 'i>1500' is always true [knownConditionTrueFalse] packETH-3.0/src/loadpacket.c:705:8: note: Assuming that condition 'i<=1500' is not redundant packETH-3.0/src/loadpacket.c:708:14: note: Condition 'i>1500' is always true packETH-3.0/src/loadpacket.c:483:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] packETH-3.0/src/loadpacket.c:485:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] packETH-3.0/src/loadpacket.c:1797:10: warning: If memory allocation fails, then there is a possible null pointer dereference: ptr [nullPointerOutOfMemory] packETH-3.0/src/loadpacket.c:1793:14: note: Assuming allocation function fails packETH-3.0/src/loadpacket.c:1793:14: note: Assignment 'ptr=malloc(length*sizeof(char)+1)', assigned value is 0 packETH-3.0/src/loadpacket.c:1797:10: note: Null pointer dereference packETH-3.0/src/loadpacket.c:46:46: style:inconclusive: Function 'load_gen_b_data' argument 2 names different: declaration '' definition 'file_p'. [funcArgNamesDifferentUnnamed] packETH-3.0/src/loadpacket.c:151:46: style:inconclusive: Function 'load_gen_s_data' argument 2 names different: declaration '' definition 'file_p'. [funcArgNamesDifferentUnnamed] packETH-3.0/src/loadpacket.c:461:67: style:inconclusive: Function 'load_gen_p_data' argument 3 names different: declaration '' definition 'fieldek'. [funcArgNamesDifferentUnnamed] packETH-3.0/src/loadpacket.c:461:96: style:inconclusive: Function 'load_gen_p_data' argument 4 names different: declaration '' definition 'ph2'. [funcArgNamesDifferentUnnamed] packETH-3.0/src/loadpacket.c:462:10: style:inconclusive: Function 'load_gen_p_data' argument 5 names different: declaration '' definition 'pkt_nr'. [funcArgNamesDifferentUnnamed] packETH-3.0/src/loadpacket.c:462:36: style:inconclusive: Function 'load_gen_p_data' argument 6 names different: declaration 'clptri' definition 'clptr'. [funcArgNamesDifferent] packETH-3.0/src/loadpacket.h:23:114: note: Function 'load_gen_p_data' argument 6 names different: declaration 'clptri' definition 'clptr'. packETH-3.0/src/loadpacket.c:462:36: note: Function 'load_gen_p_data' argument 6 names different: declaration 'clptri' definition 'clptr'. packETH-3.0/src/loadpacket.c:555:51: style:inconclusive: Function 'load_packet_disector' argument 2 names different: declaration '' definition 'fieldek'. [funcArgNamesDifferentUnnamed] packETH-3.0/src/loadpacket.c:555:104: style:inconclusive: Function 'load_packet_disector' argument 5 names different: declaration '' definition 'dolpaketa'. [funcArgNamesDifferentUnnamed] packETH-3.0/src/loadpacket.c:1858:29: style:inconclusive: Function 'retint2' argument 1 names different: declaration 'ch' definition 'from'. [funcArgNamesDifferent] packETH-3.0/src/loadpacket.h:44:29: note: Function 'retint2' argument 1 names different: declaration 'ch' definition 'from'. packETH-3.0/src/loadpacket.c:1858:29: note: Function 'retint2' argument 1 names different: declaration 'ch' definition 'from'. packETH-3.0/src/loadpacket.c:1275:6: style: Local variable 'i' shadows outer variable [shadowVariable] packETH-3.0/src/loadpacket.c:41:6: note: Shadowed declaration packETH-3.0/src/loadpacket.c:1275:6: note: Shadow variable packETH-3.0/src/loadpacket.c:1310:9: style: Local variable 'i' shadows outer variable [shadowVariable] packETH-3.0/src/loadpacket.c:41:6: note: Shadowed declaration packETH-3.0/src/loadpacket.c:1310:9: note: Shadow variable packETH-3.0/src/loadpacket.c:1442:6: style: Local variable 'i' shadows outer variable [shadowVariable] packETH-3.0/src/loadpacket.c:41:6: note: Shadowed declaration packETH-3.0/src/loadpacket.c:1442:6: note: Shadow variable packETH-3.0/src/loadpacket.c:1814:6: style: Local variable 'i' shadows outer variable [shadowVariable] packETH-3.0/src/loadpacket.c:41:6: note: Shadowed declaration packETH-3.0/src/loadpacket.c:1814:6: note: Shadow variable packETH-3.0/src/loadpacket.c:1861:6: style: Local variable 'i' shadows outer variable [shadowVariable] packETH-3.0/src/loadpacket.c:41:6: note: Shadowed declaration packETH-3.0/src/loadpacket.c:1861:6: note: Shadow variable packETH-3.0/src/loadpacket.c:461:67: style: Parameter 'fieldek' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/loadpacket.c:462:36: style: Parameter 'clptr' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/loadpacket.c:1273:44: style: Parameter 'entry' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/loadpacket.c:1787:38: style: Parameter 'entry' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/loadpacket.c:1787:51: style: Parameter 'from' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/loadpacket.c:1809:38: style: Parameter 'entry' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/loadpacket.c:1809:51: style: Parameter 'from' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/loadpacket.c:1839:25: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/loadpacket.c:1858:29: style: Parameter 'from' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/loadpacket.c:1884:36: style: Parameter 'from' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/loadpacket.c:1097:6: style: Variable 'x1' is assigned a value that is never used. [unreadVariable] packETH-3.0/src/savepacket.c:284:30: style: Parameter 'button' can be declared as pointer to const [constParameterPointer] packETH-3.0/src/savepacket.c:284:44: style: Parameter 'file_p' can be declared as pointer to const [constParameterPointer] diff: head packETH-3.0/cli/cli_send.c:1722:17: style:inconclusive: Function 'onexit' argument 1 names different: declaration '' definition 'signum'. [funcArgNamesDifferentUnnamed] head packETH-3.0/cli/parse_snort_rules.c:196:18: style:inconclusive: Function 'cleanupRules' argument 1 names different: declaration '' definition 'num_rules'. [funcArgNamesDifferentUnnamed] head packETH-3.0/cli/parse_snort_rules.c:25:28: style:inconclusive: Function 'readSnortRules' argument 1 names different: declaration '' definition 'filename'. [funcArgNamesDifferentUnnamed] head packETH-3.0/cli/parse_snort_rules.c:28:44: style: Variable 'pcre' is not assigned a value. [unassignedVariable] head packETH-3.0/src/function_send.c:178:24: style:inconclusive: Function 'sendbuilt' argument 1 names different: declaration '' definition 'parameters'. [funcArgNamesDifferentUnnamed] head packETH-3.0/src/function_send.c:755:27: style:inconclusive: Function 'sendsequence' argument 1 names different: declaration '' definition 'parameters'. [funcArgNamesDifferentUnnamed] head packETH-3.0/src/loadpacket.c:151:46: style:inconclusive: Function 'load_gen_s_data' argument 2 names different: declaration '' definition 'file_p'. [funcArgNamesDifferentUnnamed] 2.20.0 packETH-3.0/src/loadpacket.c:1798:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ptr [nullPointerOutOfMemory] packETH-3.0/src/loadpacket.c:1793:14: note: Assuming allocation function fails packETH-3.0/src/loadpacket.c:1793:14: note: Assignment 'ptr=malloc(length*sizeof(char)+1)', assigned value is 0 packETH-3.0/src/loadpacket.c:1798:2: note: Null pointer dereference head packETH-3.0/src/loadpacket.c:461:67: style:inconclusive: Function 'load_gen_p_data' argument 3 names different: declaration '' definition 'fieldek'. [funcArgNamesDifferentUnnamed] head packETH-3.0/src/loadpacket.c:461:96: style:inconclusive: Function 'load_gen_p_data' argument 4 names different: declaration '' definition 'ph2'. [funcArgNamesDifferentUnnamed] head packETH-3.0/src/loadpacket.c:462:10: style:inconclusive: Function 'load_gen_p_data' argument 5 names different: declaration '' definition 'pkt_nr'. [funcArgNamesDifferentUnnamed] head packETH-3.0/src/loadpacket.c:46:46: style:inconclusive: Function 'load_gen_b_data' argument 2 names different: declaration '' definition 'file_p'. [funcArgNamesDifferentUnnamed] head packETH-3.0/src/loadpacket.c:555:104: style:inconclusive: Function 'load_packet_disector' argument 5 names different: declaration '' definition 'dolpaketa'. [funcArgNamesDifferentUnnamed] head packETH-3.0/src/loadpacket.c:555:51: style:inconclusive: Function 'load_packet_disector' argument 2 names different: declaration '' definition 'fieldek'. [funcArgNamesDifferentUnnamed] DONE