2025-08-29 14:27 ftp://ftp.de.debian.org/debian/pool/main/w/west-chamber/west-chamber_20100405+svn20111107.r124.orig.tar.bz2 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 -j4 platform: Linux-6.12.41+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 327ef3c (2025-08-29 11:03:21 +0200) count: 8 29 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: west-chamber/extensions/libxt_CUI.c:22:71: style: Parameter 'flags' can be declared as pointer to const. However it seems that 'cui_tg_parse' is a callback function, if 'flags' is declared with const you might also need to cast function pointer(s). [constParameterCallback] west-chamber/extensions/libxt_CUI.c:34:19: note: You might need to cast the function pointer here west-chamber/extensions/libxt_CUI.c:22:71: note: Parameter 'flags' can be declared as pointer to const west-chamber/extensions/compat_skbuff.h:7:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] west-chamber/extensions/compat_skbuff.h:7:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] west-chamber/extensions/libxt_ZHANG.c:22:73: style: Parameter 'flags' can be declared as pointer to const. However it seems that 'zhang_tg_parse' is a callback function, if 'flags' is declared with const you might also need to cast function pointer(s). [constParameterCallback] west-chamber/extensions/libxt_ZHANG.c:34:19: note: You might need to cast the function pointer here west-chamber/extensions/libxt_ZHANG.c:22:73: note: Parameter 'flags' can be declared as pointer to const west-chamber/extensions/libxt_gfw.c:9:71: style: Parameter 'flags' can be declared as pointer to const. However it seems that 'gfw_mt_parse' is a callback function, if 'flags' is declared with const you might also need to cast function pointer(s). [constParameterCallback] west-chamber/extensions/libxt_gfw.c:21:20: note: You might need to cast the function pointer here west-chamber/extensions/libxt_gfw.c:9:71: note: Parameter 'flags' can be declared as pointer to const west-chamber/extensions/libxt_UDPENCAP.c:42:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_UDP [valueFlowBailoutIncompleteVar] west-chamber/extensions/libxt_UDPENCAP.c:51:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PARAMETER_PROBLEM [valueFlowBailoutIncompleteVar] west-chamber/extensions/libxt_UDPENCAP.c:85:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PARAMETER_PROBLEM [valueFlowBailoutIncompleteVar] diff: head west-chamber/extensions/compat_skbuff.h:7:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] head west-chamber/extensions/compat_skbuff.h:7:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 west-chamber/extensions/compat_xtables.c:368:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xt_target [valueFlowBailoutIncompleteVar] 2.18.0 west-chamber/extensions/compat_xtables.c:376:9: warning: Size of pointer 'tmp' used instead of size of its data. [pointerSize] 2.18.0 west-chamber/extensions/compat_xtables.c:442:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] 2.18.0 west-chamber/extensions/compat_xtables.c:612:20: portability: 'space' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] 2.18.0 west-chamber/extensions/compat_xtables.c:613:25: portability: '(void*)space' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] 2.18.0 west-chamber/extensions/xt_CUI.c:137:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IP_OFFSET [valueFlowBailoutIncompleteVar] 2.18.0 west-chamber/extensions/xt_CUI.c:235:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NF_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 west-chamber/extensions/xt_CUI.c:251:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cui_tg_reg [valueFlowBailoutIncompleteVar] 2.18.0 west-chamber/extensions/xt_CUI.c:256:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cui_tg_reg [valueFlowBailoutIncompleteVar] 2.18.0 west-chamber/extensions/xt_CUI.c:39:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IP_OFFSET [valueFlowBailoutIncompleteVar] 2.18.0 west-chamber/extensions/xt_UDPENCAP.c:139:41: error: syntax error [syntaxError] 2.18.0 west-chamber/extensions/xt_ZHANG.c:180:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NF_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 west-chamber/extensions/xt_ZHANG.c:196:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zhang_tg_reg [valueFlowBailoutIncompleteVar] 2.18.0 west-chamber/extensions/xt_ZHANG.c:201:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zhang_tg_reg [valueFlowBailoutIncompleteVar] 2.18.0 west-chamber/extensions/xt_ZHANG.c:39:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IP_OFFSET [valueFlowBailoutIncompleteVar] 2.18.0 west-chamber/extensions/xt_gfw.c:115:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gfw_mt_reg [valueFlowBailoutIncompleteVar] 2.18.0 west-chamber/extensions/xt_gfw.c:120:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gfw_mt_reg [valueFlowBailoutIncompleteVar] 2.18.0 west-chamber/extensions/xt_gfw.c:23:24: style: Variable 'th' can be declared as pointer to const [constVariablePointer] 2.18.0 west-chamber/extensions/xt_gfw.c:28:8: style: Variable 'end' can be declared as pointer to const [constVariablePointer] 2.18.0 west-chamber/extensions/xt_gfw.c:29:10: style: Variable 'dns' can be declared as pointer to const [constVariablePointer] 2.18.0 west-chamber/extensions/xt_gfw.c:34:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IP_OFFSET [valueFlowBailoutIncompleteVar] 2.18.0 west-chamber/extensions/xt_gfw.c:89:7: style: Variable 'ttl' is assigned a value that is never used. [unreadVariable] 2.18.0 west-chamber/extensions/xt_gfw.c:90:8: style: Variable 'name' is assigned a value that is never used. [unreadVariable] DONE