2025-08-31 23:04 ftp://ftp.de.debian.org/debian/pool/main/l/lime-forensics/lime-forensics_1.10.1.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 -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: 2ee39fe (2025-08-30 22:07:31 +0200) count: 2 25 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: LiME-1.10.1/src/lime.h:41:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] LiME-1.10.1/src/lime.h:41:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] diff: 2.18.0 LiME-1.10.1/src/disk.c:34:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_DIRECT [valueFlowBailoutIncompleteVar] 2.18.0 LiME-1.10.1/src/disk.c:46:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] 2.18.0 LiME-1.10.1/src/hash.c:110:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAGE_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 LiME-1.10.1/src/hash.c:115:15: portability: 'v' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] 2.18.0 LiME-1.10.1/src/hash.c:137:1: style: Label 'update_fail' is not used. [unusedLabel] 2.18.0 LiME-1.10.1/src/hash.c:143:9: style: Unused variable: ret [unusedVariable] 2.18.0 LiME-1.10.1/src/hash.c:146:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFP_KERNEL [valueFlowBailoutIncompleteVar] 2.18.0 LiME-1.10.1/src/hash.c:167:1: style: Label 'final_fail' is not used. [unusedLabel] 2.18.0 LiME-1.10.1/src/hash.c:182:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAGAIN [valueFlowBailoutIncompleteVar] 2.18.0 LiME-1.10.1/src/hash.c:193:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFP_KERNEL [valueFlowBailoutIncompleteVar] 2.18.0 LiME-1.10.1/src/hash.c:88:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u8 [valueFlowBailoutIncompleteVar] 2.18.0 LiME-1.10.1/src/hash.c:88:5: style:inconclusive: Statements following 'goto' will never be executed. [unreachableCode] 2.18.0 LiME-1.10.1/src/hash.c:98:9: style: Unused variable: ret [unusedVariable] head LiME-1.10.1/src/lime.h:41:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] head LiME-1.10.1/src/lime.h:41:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 LiME-1.10.1/src/main.c:101:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] 2.18.0 LiME-1.10.1/src/main.c:160:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFP_NOIO [valueFlowBailoutIncompleteVar] 2.18.0 LiME-1.10.1/src/main.c:205:21: style: Variable 'err' is assigned a value that is never used. [unreadVariable] 2.18.0 LiME-1.10.1/src/main.c:207:21: style: Variable 'err' is assigned a value that is never used. [unreadVariable] 2.18.0 LiME-1.10.1/src/main.c:228:52: style: Parameter 'res' can be declared as pointer to const [constParameterPointer] 2.18.0 LiME-1.10.1/src/main.c:244:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAGE_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 LiME-1.10.1/src/main.c:260:43: style: Parameter 'res' can be declared as pointer to const [constParameterPointer] 2.18.0 LiME-1.10.1/src/main.c:281:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAGE_SHIFT [valueFlowBailoutIncompleteVar] 2.18.0 LiME-1.10.1/src/main.c:375:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAGAIN [valueFlowBailoutIncompleteVar] 2.18.0 LiME-1.10.1/src/tcp.c:123:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHUT_RDWR [valueFlowBailoutIncompleteVar] 2.18.0 LiME-1.10.1/src/tcp.c:140:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iovec [valueFlowBailoutIncompleteVar] 2.18.0 LiME-1.10.1/src/tcp.c:66:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] DONE