2026-05-02 18:51 ftp://ftp.de.debian.org/debian/pool/main/k/kdegraphics-mobipocket/kdegraphics-mobipocket_25.04.3.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=qt --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-111-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: e5c4a73 (2026-05-01 11:10:43 +0200) count: 33 33 elapsed-time: 0.2 0.1 head-timing-info: old-timing-info: head results: kdegraphics-mobipocket-25.04.3/lib/decompressor.cpp:63:13: style:inconclusive: Technically the member function 'Mobipocket::BitReader::read' can be const. [functionConst] kdegraphics-mobipocket-25.04.3/lib/decompressor.cpp:77:9: style:inconclusive: Technically the member function 'Mobipocket::BitReader::left' can be const. [functionConst] kdegraphics-mobipocket-25.04.3/lib/mobipocket.h:42:5: style: Class 'PDB' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kdegraphics-mobipocket-25.04.3/lib/mobipocket.h:57:5: style: Class 'Document' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kdegraphics-mobipocket-25.04.3/lib/decompressor.cpp:44:5: style: Class 'NOOPDecompressor' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kdegraphics-mobipocket-25.04.3/lib/decompressor.cpp:52:5: style: Class 'RLEDecompressor' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kdegraphics-mobipocket-25.04.3/lib/decompressor.cpp:59:5: style: Class 'BitReader' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kdegraphics-mobipocket-25.04.3/lib/decompressor.cpp:90:5: style: Class 'HuffdicDecompressor' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kdegraphics-mobipocket-25.04.3/lib/decompressor.cpp:145:15: style: Local variable 'i' shadows outer variable [shadowVariable] kdegraphics-mobipocket-25.04.3/lib/decompressor.cpp:112:13: note: Shadowed declaration kdegraphics-mobipocket-25.04.3/lib/decompressor.cpp:145:15: note: Shadow variable kdegraphics-mobipocket-25.04.3/lib/decompressor.cpp:208:27: warning: Shifting 32-bit value by 32 bits is undefined behaviour. See condition at line 218. [shiftTooManyBits] kdegraphics-mobipocket-25.04.3/lib/decompressor.cpp:218:13: note: Assuming that condition '!codelen' is not redundant kdegraphics-mobipocket-25.04.3/lib/decompressor.cpp:210:13: note: Assuming condition is false kdegraphics-mobipocket-25.04.3/lib/decompressor.cpp:208:27: note: Shift kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:136:109: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CaseInsensitiveOption [valueFlowBailoutIncompleteVar] kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:189:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:107:5: warning: Member variable 'DocumentPrivate::ntextrecords' is not initialized in the constructor. [uninitMemberVar] kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:107:5: warning: Member variable 'DocumentPrivate::maxRecordSize' is not initialized in the constructor. [uninitMemberVar] kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:107:5: warning: Member variable 'DocumentPrivate::codec' is not initialized in the constructor. [uninitMemberVar] kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:206:25: style:inconclusive: Technically the member function 'Mobipocket::DocumentPrivate::getImageFromRecord' can be const. [functionConst] kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:130:12: note: Technically the member function 'Mobipocket::DocumentPrivate::getImageFromRecord' can be const. kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:206:25: note: Technically the member function 'Mobipocket::DocumentPrivate::getImageFromRecord' can be const. kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:73:25: warning: Class 'PDB' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:73:25: warning: Class 'PDB' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:246:35: warning: Class 'Document' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:246:35: warning: Class 'Document' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:107:5: style: Struct 'DocumentPrivate' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kdegraphics-mobipocket-25.04.3/lib/mobipocket.h:58:27: performance: Function 'metadata()' should return member 'metadata' by const reference. [returnByReference] kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:60:22: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:64:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:66:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:73:18: style:inconclusive: Function 'PDB' argument 1 names different: declaration 's' definition 'dev'. [funcArgNamesDifferent] kdegraphics-mobipocket-25.04.3/lib/mobipocket.h:42:17: note: Function 'PDB' argument 1 names different: declaration 's' definition 'dev'. kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:73:18: note: Function 'PDB' argument 1 names different: declaration 's' definition 'dev'. kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:206:48: style:inconclusive: Function 'getImageFromRecord' argument 1 names different: declaration 'recnum' definition 'i'. [funcArgNamesDifferent] kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:130:35: note: Function 'getImageFromRecord' argument 1 names different: declaration 'recnum' definition 'i'. kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:206:48: note: Function 'getImageFromRecord' argument 1 names different: declaration 'recnum' definition 'i'. kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:246:28: style:inconclusive: Function 'Document' argument 1 names different: declaration 's' definition 'dev'. [funcArgNamesDifferent] kdegraphics-mobipocket-25.04.3/lib/mobipocket.h:57:22: note: Function 'Document' argument 1 names different: declaration 's' definition 'dev'. kdegraphics-mobipocket-25.04.3/lib/mobipocket.cpp:246:28: note: Function 'Document' argument 1 names different: declaration 's' definition 'dev'. kdegraphics-mobipocket-25.04.3/lib/qfilestream.cpp:17:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] kdegraphics-mobipocket-25.04.3/lib/qfilestream.cpp:15:4: warning: Class 'QFileStream' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] kdegraphics-mobipocket-25.04.3/lib/qfilestream.cpp:15:4: warning: Class 'QFileStream' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] kdegraphics-mobipocket-25.04.3/lib/qfilestream.h:21:5: style: Class 'QFileStream' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kdegraphics-mobipocket-25.04.3/lib/qfilestream.h:22:6: style: The destructor '~QFileStream' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] kdegraphics-mobipocket-25.04.3/lib/mobipocket.h:36:14: note: Virtual destructor in base class kdegraphics-mobipocket-25.04.3/lib/qfilestream.h:22:6: note: Destructor in derived class diff: DONE