2025-09-02 00:50 ftp://ftp.de.debian.org/debian/pool/main/n/nat-rtsp/nat-rtsp_0.7+5.3.orig.tar.xz 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-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 2b51b48 (2025-09-01 15:35:55 +0200) count: 4 19 elapsed-time: 0.1 0.6 head-timing-info: old-timing-info: head results: rtsp-linux-5.3/nf_conntrack_rtsp.c:80:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] rtsp-linux-5.3/nf_conntrack_rtsp.c:80:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] rtsp-linux-5.3/nf_nat_rtsp.c:42:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] rtsp-linux-5.3/nf_nat_rtsp.c:42:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] diff: 2.18.0 rtsp-linux-5.3/nf_conntrack_rtsp.c:225:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pb_range [valueFlowBailoutIncompleteVar] 2.18.0 rtsp-linux-5.3/nf_conntrack_rtsp.c:255:8: style: Variable 'off' is reassigned a value before the old one has been used. [redundantAssignment] rtsp-linux-5.3/nf_conntrack_rtsp.c:224:11: note: off is assigned rtsp-linux-5.3/nf_conntrack_rtsp.c:255:8: note: off is overwritten 2.18.0 rtsp-linux-5.3/nf_conntrack_rtsp.c:255:8: style: Variable 'off' is reassigned a value before the old one has been used. [redundantAssignment] rtsp-linux-5.3/nf_conntrack_rtsp.c:240:11: note: off is assigned rtsp-linux-5.3/nf_conntrack_rtsp.c:255:8: note: off is overwritten 2.18.0 rtsp-linux-5.3/nf_conntrack_rtsp.c:286:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NF_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 rtsp-linux-5.3/nf_conntrack_rtsp.c:423:25: style: Parameter 'skb' can be declared as pointer to const [constParameterPointer] 2.18.0 rtsp-linux-5.3/nf_conntrack_rtsp.c:424:18: style: Parameter 'ct' can be declared as pointer to const [constParameterPointer] 2.18.0 rtsp-linux-5.3/nf_conntrack_rtsp.c:426:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NF_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 rtsp-linux-5.3/nf_conntrack_rtsp.c:432:24: style: Variable 'th' can be declared as pointer to const [constVariablePointer] 2.18.0 rtsp-linux-5.3/nf_conntrack_rtsp.c:435:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NF_DROP [valueFlowBailoutIncompleteVar] 2.18.0 rtsp-linux-5.3/nf_conntrack_rtsp.c:519:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBUSY [valueFlowBailoutIncompleteVar] head rtsp-linux-5.3/nf_conntrack_rtsp.c:80:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] head rtsp-linux-5.3/nf_conntrack_rtsp.c:80:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 rtsp-linux-5.3/nf_nat_rtsp.c:135:30: style: Parameter 'prtspexp' can be declared as pointer to const [constParameterPointer] 2.18.0 rtsp-linux-5.3/nf_nat_rtsp.c:161:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET_ADDRSTRLEN [valueFlowBailoutIncompleteVar] 2.18.0 rtsp-linux-5.3/nf_nat_rtsp.c:405:8: style: Variable 'off' is reassigned a value before the old one has been used. [redundantAssignment] rtsp-linux-5.3/nf_nat_rtsp.c:370:11: note: off is assigned rtsp-linux-5.3/nf_nat_rtsp.c:405:8: note: off is overwritten head rtsp-linux-5.3/nf_nat_rtsp.c:42:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] head rtsp-linux-5.3/nf_nat_rtsp.c:42:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 rtsp-linux-5.3/nf_nat_rtsp.c:435:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ip [valueFlowBailoutIncompleteVar] 2.18.0 rtsp-linux-5.3/nf_nat_rtsp.c:511:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NF_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 rtsp-linux-5.3/nf_nat_rtsp.c:534:82: style: Parameter 'exp' can be declared as pointer to const. However it seems that 'nf_nat_rtsp_expected' is a callback function, if 'exp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rtsp-linux-5.3/nf_nat_rtsp.c:479:26: note: You might need to cast the function pointer here rtsp-linux-5.3/nf_nat_rtsp.c:534:82: note: Parameter 'exp' can be declared as pointer to const 2.18.0 rtsp-linux-5.3/nf_nat_rtsp.c:545:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPS_NAT_DONE_MASK [valueFlowBailoutIncompleteVar] 2.18.0 rtsp-linux-5.3/nf_nat_rtsp.c:597:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nf_nat_rtsp_hook [valueFlowBailoutIncompleteVar] 2.18.0 rtsp-linux-5.3/nf_nat_rtsp.c:87:37: portability: '(void*)iph' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] DONE