2025-05-04 18:59 ftp://ftp.de.debian.org/debian/pool/main/g/golang-github-iovisor-gobpf/golang-github-iovisor-gobpf_0.2.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 88ef81e (2025-05-02 08:42:38 +0200) count: 19 19 elapsed-time: 0.0 0.0 head-timing-info: old-timing-info: head results: gobpf-0.2.0/elf/nlattr.c:45:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NLA_TYPE_MASK [valueFlowBailoutIncompleteVar] gobpf-0.2.0/elf/nlattr.c:60:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBBPF_NLA_TYPE_MAX [valueFlowBailoutIncompleteVar] gobpf-0.2.0/elf/nlattr.c:86:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NLMSG_HDRLEN [valueFlowBailoutIncompleteVar] gobpf-0.2.0/elf/nlattr.c:128:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gobpf-0.2.0/elf/nlattr.c:163:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NLMSGERR_ATTR_MAX [valueFlowBailoutIncompleteVar] gobpf-0.2.0/elf/netlink.c:39:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gobpf-0.2.0/elf/netlink.c:91:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_NETLINK [valueFlowBailoutIncompleteVar] gobpf-0.2.0/elf/netlink.c:142:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifinfomsg [valueFlowBailoutIncompleteVar] gobpf-0.2.0/elf/nlattr.c:51:28: style: Variable 'pt' can be declared as pointer to const [constVariablePointer] gobpf-0.2.0/elf/nlattr.c:75:9: style: Variable 'data' can be declared as pointer to const [constVariablePointer] gobpf-0.2.0/elf/nlattr.c:169:8: style: Variable 'errmsg' can be declared as pointer to const [constVariablePointer] gobpf-0.2.0/elf/nlattr.c:183:41: portability: '(void*)err' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] gobpf-0.2.0/tests/dummy.c:85:35: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] gobpf-0.2.0/tests/dummy.c:91:38: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] gobpf-0.2.0/tests/dummy.c:97:35: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] gobpf-0.2.0/tests/dummy.c:103:38: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] gobpf-0.2.0/tests/dummy.c:131:37: style: Parameter 'skb' can be declared as pointer to const [constParameterPointer] gobpf-0.2.0/elf/netlink.c:30:19: style: Variable 'err' can be declared as pointer to const [constVariablePointer] gobpf-0.2.0/elf/netlink.c:133:20: style: struct member 'Anonymous0::attrbuf' is never used. [unusedStructMember] diff: DONE