2026-03-29 08:11 ftp://ftp.de.debian.org/debian/pool/main/l/lucene8/lucene8_8.8.1.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-106-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: e06e98f (2026-03-28 10:25:12 +0100) count: 20 20 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: lucene-8.8.1/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp:132:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] lucene-8.8.1/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp:209:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] lucene-8.8.1/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp:247:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POSIX_MADV_NORMAL [valueFlowBailoutIncompleteVar] lucene-8.8.1/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp:313:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MADV_NORMAL [valueFlowBailoutIncompleteVar] lucene-8.8.1/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp:203:20: style: Condition 'numBytesRead==-1' is always false [knownConditionTrueFalse] lucene-8.8.1/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp:156:5: error: Resource leak: fd [resourceLeak] lucene-8.8.1/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp:163:5: error: Resource leak: fd [resourceLeak] lucene-8.8.1/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp:129:11: style: C-style pointer casting [cstyleCast] lucene-8.8.1/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp:268:21: style: C-style pointer casting [cstyleCast] lucene-8.8.1/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp:335:15: style: C-style pointer casting [cstyleCast] lucene-8.8.1/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp:198:12: style: Checking if unsigned expression 'size' is less than zero. [unsignedLessThanZero] lucene-8.8.1/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp:229:12: style: Checking if unsigned expression 'size' is less than zero. [unsignedLessThanZero] lucene-8.8.1/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp:295:12: style: Checking if unsigned expression 'size' is less than zero. [unsignedLessThanZero] lucene-8.8.1/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp:223:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lucene-8.8.1/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp:289:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lucene-8.8.1/misc/src/java/org/apache/lucene/store/WindowsDirectory.cpp:152:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] lucene-8.8.1/misc/src/java/org/apache/lucene/store/WindowsDirectory.cpp:74:11: style: C-style pointer casting [cstyleCast] lucene-8.8.1/misc/src/java/org/apache/lucene/store/WindowsDirectory.cpp:129:32: style: C-style pointer casting [cstyleCast] lucene-8.8.1/misc/src/java/org/apache/lucene/store/WindowsDirectory.cpp:120:55: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lucene-8.8.1/misc/src/java/org/apache/lucene/store/WindowsDirectory.cpp:38:85: error: Uninitialized variable: msg [uninitvar] diff: DONE