2025-05-05 15:51 ftp://ftp.de.debian.org/debian/pool/main/libb/libbinio/libbinio_1.5+dfsg.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: fcc0493 (2025-05-05 13:08:11 +0200) count: 47 46 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: libbinio-libbinio-1.5/src/binstr.cpp:49:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Eof [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binstr.cpp:75:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Eof [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binstr.cpp:98:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Eof [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binstr.h:43:12: style: The destructor '~binisstream' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] libbinio-libbinio-1.5/src/binstr.h:29:12: note: Virtual destructor in base class libbinio-libbinio-1.5/src/binstr.h:43:12: note: Destructor in derived class libbinio-libbinio-1.5/src/binstr.h:53:12: style: The destructor '~binosstream' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] libbinio-libbinio-1.5/src/binstr.h:29:12: note: Virtual destructor in base class libbinio-libbinio-1.5/src/binstr.h:53:12: note: Destructor in derived class libbinio-libbinio-1.5/src/binstr.h:63:12: style: The destructor '~binsstream' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] libbinio-libbinio-1.5/src/binstr.h:43:12: note: Virtual destructor in base class libbinio-libbinio-1.5/src/binstr.h:63:12: note: Destructor in derived class libbinio-libbinio-1.5/src/binstr.cpp:25:10: style: C-style pointer casting [cstyleCast] libbinio-libbinio-1.5/src/binstr.cpp:25:29: style: C-style pointer casting [cstyleCast] libbinio-libbinio-1.5/src/binfile.cpp:40:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binfile.cpp:49:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NotOpen [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binfile.cpp:64:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NotOpen [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binfile.cpp:102:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binfile.cpp:122:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binfile.cpp:157:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Append [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binfile.cpp:182:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NotOpen [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binfile.cpp:216:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoCreate [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binfile.h:64:16: style: Virtual function 'open' is called from constructor 'binifstream(const char*filename,const Mode mode=NoCreate)' at line 83. Dynamic binding is not used. [virtualCallInConstructor] libbinio-libbinio-1.5/src/binfile.cpp:83:3: note: Calling open libbinio-libbinio-1.5/src/binfile.h:64:16: note: open is a virtual function libbinio-libbinio-1.5/src/binfile.h:84:16: style: Virtual function 'open' is called from constructor 'binofstream(const char*filename,const Mode mode=0)' at line 138. Dynamic binding is not used. [virtualCallInConstructor] libbinio-libbinio-1.5/src/binfile.cpp:138:3: note: Calling open libbinio-libbinio-1.5/src/binfile.h:84:16: note: open is a virtual function libbinio-libbinio-1.5/src/binfile.h:104:16: style: Virtual function 'open' is called from constructor 'binfstream(const char*filename,const Mode mode=0)' at line 196. Dynamic binding is not used. [virtualCallInConstructor] libbinio-libbinio-1.5/src/binfile.cpp:196:3: note: Calling open libbinio-libbinio-1.5/src/binfile.h:104:16: note: open is a virtual function libbinio-libbinio-1.5/src/binfile.h:57:3: style: Class 'binifstream' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libbinio-libbinio-1.5/src/binfile.h:77:3: style: Class 'binofstream' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libbinio-libbinio-1.5/src/binfile.h:97:3: style: Class 'binfstream' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libbinio-libbinio-1.5/src/binfile.h:62:12: style: The destructor '~binifstream' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] libbinio-libbinio-1.5/src/binfile.h:38:12: note: Virtual destructor in base class libbinio-libbinio-1.5/src/binfile.h:62:12: note: Destructor in derived class libbinio-libbinio-1.5/src/binfile.h:82:12: style: The destructor '~binofstream' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] libbinio-libbinio-1.5/src/binfile.h:38:12: note: Virtual destructor in base class libbinio-libbinio-1.5/src/binfile.h:82:12: note: Destructor in derived class libbinio-libbinio-1.5/src/binfile.h:102:12: style: The destructor '~binfstream' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] libbinio-libbinio-1.5/src/binfile.h:62:12: note: Virtual destructor in base class libbinio-libbinio-1.5/src/binfile.h:102:12: note: Destructor in derived class libbinio-libbinio-1.5/src/binfile.h:104:16: style: The function 'open' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libbinio-libbinio-1.5/src/binfile.h:64:16: note: Virtual function in base class libbinio-libbinio-1.5/src/binfile.h:104:16: note: Function in derived class libbinio-libbinio-1.5/src/binfile.cpp:118:7: style: The scope of the variable 'read' can be reduced. [variableScope] libbinio-libbinio-1.5/src/binfile.cpp:154:9: style: Variable 'modestr' can be declared as pointer to const [constVariablePointer] libbinio-libbinio-1.5/src/binfile.cpp:212:19: error: Modifying string literal "w+b" directly or indirectly is undefined behaviour. [stringLiteralWrite] libbinio-libbinio-1.5/src/binfile.cpp:221:7: note: Modifying string literal "w+b" directly or indirectly is undefined behaviour. libbinio-libbinio-1.5/src/binfile.cpp:212:19: note: Modifying string literal "w+b" directly or indirectly is undefined behaviour. libbinio-libbinio-1.5/src/binio.cpp:61:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BigEndian [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binio.cpp:90:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable my_flags [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binio.cpp:104:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoError [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binio.cpp:110:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Eof [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binio.cpp:129:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Int [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binio.cpp:148:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FloatIEEE [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binio.cpp:206:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Unsupported [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binio.cpp:245:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Unsupported [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binio.cpp:330:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Add [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binio.cpp:340:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Add [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binio.cpp:381:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Int [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binio.cpp:395:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FloatIEEE [valueFlowBailoutIncompleteVar] libbinio-libbinio-1.5/src/binio.cpp:65:15: style: C-style pointer casting [cstyleCast] libbinio-libbinio-1.5/src/binio.cpp:175:28: style: C-style pointer casting [cstyleCast] libbinio-libbinio-1.5/src/binio.cpp:176:28: style: C-style pointer casting [cstyleCast] libbinio-libbinio-1.5/src/binio.cpp:410:36: style: C-style pointer casting [cstyleCast] libbinio-libbinio-1.5/src/binio.cpp:411:36: style: C-style pointer casting [cstyleCast] libbinio-libbinio-1.5/src/binio.cpp:97:24: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] diff: head libbinio-libbinio-1.5/src/binstr.cpp:25:29: style: C-style pointer casting [cstyleCast] DONE