2026-05-06 04:23 ftp://ftp.de.debian.org/debian/pool/main/a/ap51-flash/ap51-flash_2025.0.orig.tar.gz 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-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: 6278f6b (2026-05-05 15:01:04 +0200) count: 91 91 elapsed-time: 1.0 0.9 head-timing-info: old-timing-info: head results: ap51-flash-2025.0/proto.h:74:15: debug: Function::addArguments found argument 'desc' with varid 0. [varid0] ap51-flash-2025.0/commandline.c:23:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/commandline.c:86:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_argument [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/commandline.c:81:8: style: Variable 'iface' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/commandline.c:85:23: style: Variable 'long_options' can be declared as const array [constVariable] ap51-flash-2025.0/proto.h:61:43: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] ap51-flash-2025.0/flash.c:35:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/flash.c:58:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/flash.c:69:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/flash.c:128:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETH_ALEN [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/fwcfg.c:53:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/fwcfg.c:123:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/fwcfg.c:38:8: style: Variable 'value' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/fwcfg.c:38:16: style: Variable 'type' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/fwcfg.c:41:20: style: Variable 'file_info' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/proto.c:80:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETH_ALEN [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/proto.c:98:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARPOP_REQUEST [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/proto.c:106:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARPOP_REPLY [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/proto.c:120:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETH_ALEN [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/proto.c:155:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iphdr [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/proto.c:193:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ether_arp [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/proto.c:270:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable udphdr [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/proto.c:521:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETH_ALEN [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/proto.c:550:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETH_DATA_LEN [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/proto.c:622:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETH_HLEN [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/proto.c:655:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETH_HLEN [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/proto.c:671:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tcphdr [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/proto.c:756:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable icmphdr [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/proto.c:815:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iphdr [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/proto.c:884:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETH_HLEN [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/proto.c:929:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETH_HLEN [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/proto.c:339:4: warning: %i in format string (no. 11) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ap51-flash-2025.0/proto.c:376:5: warning: %i in format string (no. 8) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ap51-flash-2025.0/proto.c:708:8: style: Variable 'buff' is reassigned a value before the old one has been used. [redundantAssignment] ap51-flash-2025.0/proto.c:703:8: note: buff is assigned ap51-flash-2025.0/proto.c:708:8: note: buff is overwritten ap51-flash-2025.0/proto.c:117:43: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] ap51-flash-2025.0/proto.c:263:17: style: Variable 'udphdr' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/proto.c:264:20: style: Variable 'file_info' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/proto.c:620:8: style: Variable 'packet_buff' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/proto.c:751:23: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] ap51-flash-2025.0/proto.c:811:16: style: Variable 'iphdr' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/proto.c:880:23: style: Variable 'eth_hdr' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/proto.c:882:10: style: Variable 'bcast_addr' can be declared as const array [constVariable] ap51-flash-2025.0/router_images.c:63:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_images.c:100:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_images.c:226:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_images.c:332:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_images.c:408:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_images.c:699:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_images.c:713:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_images.c:783:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_images.c:821:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_images.c:400:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] ap51-flash-2025.0/router_images.c:403:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] ap51-flash-2025.0/router_images.c:684:11: style: Condition 'ret!=1' is always true [knownConditionTrueFalse] ap51-flash-2025.0/router_images.c:514:12: note: Assignment 'ret=0', assigned value is 0 ap51-flash-2025.0/router_images.c:683:35: note: Calling function 'router_image_init_embedded' returns 0 ap51-flash-2025.0/router_images.c:683:35: note: Assignment 'ret=router_image_init_embedded(*router_image)', assigned value is 0 ap51-flash-2025.0/router_images.c:684:11: note: Condition 'ret!=1' is always true ap51-flash-2025.0/router_images.c:380:9: warning:inconclusive: Width 10 given in format string (no. 1) is smaller than destination buffer 'name_buff[33]'. [invalidScanfFormatWidth_smaller] ap51-flash-2025.0/router_images.c:414:10: warning:inconclusive: Width 20 given in format string (no. 1) is smaller than destination buffer 'name_buff[33]'. [invalidScanfFormatWidth_smaller] ap51-flash-2025.0/router_images.c:95:67: style: Parameter 'file_list' can be declared as pointer to const [constParameterPointer] ap51-flash-2025.0/router_images.c:356:23: style: Variable 'name_ptr' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/router_images.c:489:23: style: Variable 'zyxel_header' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/router_images.c:512:60: style: Parameter 'router_image' can be declared as pointer to const [constParameterPointer] ap51-flash-2025.0/router_netconsole.c:33:17: debug: Function::addArguments found argument 'priv' with varid 0. [varid0] ap51-flash-2025.0/router_netconsole.c:39:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ether_arp [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_netconsole.c:70:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ether_arp [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_netconsole.c:122:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_netconsole.c:36:20: style: Variable 'arphdr' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/router_redboot.c:85:45: debug: Function::addArguments found argument 'node' with varid 0. [varid0] ap51-flash-2025.0/router_redboot.c:167:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_redboot.c:310:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ether_arp [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_redboot.c:346:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ether_arp [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_redboot.c:203:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ap51-flash-2025.0/router_redboot.c:203:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ap51-flash-2025.0/router_redboot.c:52:8: style: Variable 'flash_str' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/router_redboot.c:145:20: style: Variable 'file_info' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/router_redboot.c:163:18: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] ap51-flash-2025.0/router_tftp_client.c:36:15: debug: Function::addArguments found argument 'priv' with varid 0. [varid0] ap51-flash-2025.0/router_tftp_client.c:51:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ether_arp [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_tftp_client.c:91:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ether_arp [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_tftp_client.c:145:21: style: Variable 'mr500_priv' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/router_tftp_client.c:146:20: style: Variable 'om2p_priv' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/router_tftp_server.c:46:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ether_arp [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_tftp_server.c:72:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ether_arp [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_tftp_server.c:25:10: style: Variable 'bcast_mac' can be declared as const array [constVariable] ap51-flash-2025.0/router_tftp_server.c:26:29: style: Variable 'tftp_server' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/router_tftp_server.c:39:29: style: Variable 'tftp_server' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/router_types.c:77:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETH_ALEN [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_types.c:101:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_types.c:116:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_types.c:163:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ap51-flash-2025.0/router_types.c:94:2: error: Memory leak: new_entry [memleak] ap51-flash-2025.0/router_types.c:147:22: style: Variable 'router_info' can be declared as pointer to const [constVariablePointer] ap51-flash-2025.0/socket.c:258:2: error: #error socket_dump_ifaces() is not supported on your OS [preprocessorErrorDirective] diff: DONE