2026-05-03 19:51 ftp://ftp.de.debian.org/debian/pool/main/n/netmate/netmate_0.2.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.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 65 65 elapsed-time: 0.8 0.7 head-timing-info: old-timing-info: head results: netmate-0.2.0/layer3.h:888:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IP_RF [valueFlowBailoutIncompleteVar] netmate-0.2.0/layer3.h:1065:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_HOPOPTS [valueFlowBailoutIncompleteVar] netmate-0.2.0/netmate.c:84:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] netmate-0.2.0/netmate.c:109:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] netmate-0.2.0/netmate.c:134:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] netmate-0.2.0/netmate.c:159:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] netmate-0.2.0/netmate.c:227:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCAP_ERRBUF_SIZE [valueFlowBailoutIncompleteVar] netmate-0.2.0/netmate.c:403:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] netmate-0.2.0/netmate.c:455:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ether_header [valueFlowBailoutIncompleteVar] netmate-0.2.0/netmate.c:591:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCAP_ERRBUF_SIZE [valueFlowBailoutIncompleteVar] netmate-0.2.0/netmate.c:689:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] netmate-0.2.0/layer3.h:1177:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] netmate-0.2.0/layer2.h:295:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer2.h:367:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:853:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:910:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed short'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:910:3: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:961:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:1021:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:1031:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:1050:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:1068:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:1073:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:1073:5: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:1080:7: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:1084:7: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:1131:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:1208:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:1359:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:1507:7: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:1511:7: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer4.h:75:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer4.h:204:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer4.h:216:7: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer4.h:271:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] netmate-0.2.0/layer3.h:969:5: warning: If memory allocation fails, then there is a possible null pointer dereference: optdata [nullPointerOutOfMemory] netmate-0.2.0/layer3.h:965:21: note: Assuming allocation function fails netmate-0.2.0/layer3.h:965:21: note: Assignment 'optdata=malloc(optlen*2)', assigned value is 0 netmate-0.2.0/layer3.h:969:5: note: Null pointer dereference netmate-0.2.0/layer3.h:972:43: warning: If memory allocation fails, then there is a possible null pointer dereference: optdata [nullPointerOutOfMemory] netmate-0.2.0/layer3.h:965:21: note: Assuming allocation function fails netmate-0.2.0/layer3.h:965:21: note: Assignment 'optdata=malloc(optlen*2)', assigned value is 0 netmate-0.2.0/layer3.h:972:43: note: Null pointer dereference netmate-0.2.0/layer3.h:1091:9: warning: If memory allocation fails, then there is a possible null pointer dereference: optdata [nullPointerOutOfMemory] netmate-0.2.0/layer3.h:1088:25: note: Assuming allocation function fails netmate-0.2.0/layer3.h:1088:25: note: Assignment 'optdata=malloc(optlen*2+1)', assigned value is 0 netmate-0.2.0/layer3.h:1091:9: note: Null pointer dereference netmate-0.2.0/layer3.h:1093:38: warning: If memory allocation fails, then there is a possible null pointer dereference: optdata [nullPointerOutOfMemory] netmate-0.2.0/layer3.h:1088:25: note: Assuming allocation function fails netmate-0.2.0/layer3.h:1088:25: note: Assignment 'optdata=malloc(optlen*2+1)', assigned value is 0 netmate-0.2.0/layer3.h:1093:38: note: Null pointer dereference netmate-0.2.0/layer3.h:1314:5: warning: If memory allocation fails, then there is a possible null pointer dereference: optdata [nullPointerOutOfMemory] netmate-0.2.0/layer3.h:1306:19: note: Assuming allocation function fails netmate-0.2.0/layer3.h:1306:19: note: Assignment 'optdata=malloc(10)', assigned value is 0 netmate-0.2.0/layer3.h:1314:5: note: Null pointer dereference netmate-0.2.0/layer3.h:1317:33: warning: If memory allocation fails, then there is a possible null pointer dereference: optdata [nullPointerOutOfMemory] netmate-0.2.0/layer3.h:1306:19: note: Assuming allocation function fails netmate-0.2.0/layer3.h:1306:19: note: Assignment 'optdata=malloc(10)', assigned value is 0 netmate-0.2.0/layer3.h:1317:33: note: Null pointer dereference netmate-0.2.0/layer4.h:227:9: warning: If memory allocation fails, then there is a possible null pointer dereference: optdata [nullPointerOutOfMemory] netmate-0.2.0/layer4.h:223:25: note: Assuming allocation function fails netmate-0.2.0/layer4.h:223:25: note: Assignment 'optdata=malloc(optlen*2)', assigned value is 0 netmate-0.2.0/layer4.h:227:9: note: Null pointer dereference netmate-0.2.0/layer4.h:230:45: warning: If memory allocation fails, then there is a possible null pointer dereference: optdata [nullPointerOutOfMemory] netmate-0.2.0/layer4.h:223:25: note: Assuming allocation function fails netmate-0.2.0/layer4.h:223:25: note: Assignment 'optdata=malloc(optlen*2)', assigned value is 0 netmate-0.2.0/layer4.h:230:45: note: Null pointer dereference netmate-0.2.0/netmate.c:177:79: style: Parameter 'tooltip' can be declared as pointer to const [constParameterPointer] netmate-0.2.0/netmate.c:195:35: style: Parameter 'protocol' can be declared as pointer to const [constParameterPointer] netmate-0.2.0/netmate.c:421:24: style: Variable 'eth' can be declared as pointer to const [constVariablePointer] netmate-0.2.0/netmate.c:422:17: style: Variable 'ipv4' can be declared as pointer to const [constVariablePointer] netmate-0.2.0/netmate.c:423:18: style: Variable 'tcp' can be declared as pointer to const [constVariablePointer] netmate-0.2.0/netmate.c:424:18: style: Variable 'udp' can be declared as pointer to const [constVariablePointer] netmate-0.2.0/netmate.c:426:22: style: Variable 'sll' can be declared as pointer to const [constVariablePointer] netmate-0.2.0/layer2.h:279:38: style: Parameter 'sll' can be declared as pointer to const [constParameterPointer] netmate-0.2.0/layer2.h:351:45: style: Parameter 'eth' can be declared as pointer to const [constParameterPointer] netmate-0.2.0/layer3.h:461:48: style: Parameter 'optdata' can be declared as pointer to const [constParameterPointer] netmate-0.2.0/layer3.h:829:34: style: Parameter 'ipv4' can be declared as pointer to const [constParameterPointer] netmate-0.2.0/layer3.h:1115:34: style: Parameter 'arp' can be declared as pointer to const [constParameterPointer] netmate-0.2.0/layer3.h:1189:36: style: Parameter 'icmp' can be declared as pointer to const [constParameterPointer] netmate-0.2.0/layer3.h:1337:40: style: Parameter 'icmpv6' can be declared as pointer to const [constParameterPointer] netmate-0.2.0/layer4.h:54:34: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] netmate-0.2.0/layer4.h:255:34: style: Parameter 'udp' can be declared as pointer to const [constParameterPointer] netmate-0.2.0/netmate.c:259:17: warning: Uninitialized variable: packetnumber [uninitvar] netmate-0.2.0/netmate.c:253:38: note: Assuming condition is false netmate-0.2.0/netmate.c:259:17: note: Uninitialized variable: packetnumber netmate-0.2.0/netmate.c:659:8: warning: Uninitialized variable: source [uninitvar] netmate-0.2.0/netmate.c:638:50: note: Assuming condition is false netmate-0.2.0/netmate.c:659:8: note: Uninitialized variable: source netmate-0.2.0/netmate.c:660:8: warning: Uninitialized variable: destination [uninitvar] netmate-0.2.0/netmate.c:638:50: note: Assuming condition is false netmate-0.2.0/netmate.c:660:8: note: Uninitialized variable: destination netmate-0.2.0/layer3.h:1177:11: style: Variable 'options' is assigned a value that is never used. [unreadVariable] netmate-0.2.0/netmate.c:385:19: style: Variable 'nextproto' is assigned a value that is never used. [unreadVariable] netmate-0.2.0/netmate.c:583:19: style: Variable 'nextproto' is assigned a value that is never used. [unreadVariable] diff: DONE