2025-07-15 21:33 ftp://ftp.de.debian.org/debian/pool/main/s/sdcv/sdcv_0.5.5.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=zlib --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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: b62f571 (2025-07-15 18:23:53 +0200) count: 138 153 elapsed-time: 2.2 2.2 head-timing-info: old-timing-info: head results: Dushistov-sdcv-c396891/src/readline.cpp:45:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/readline.cpp:57:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/utils.hpp:14:5: style: Class 'ResourceWrapper' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Dushistov-sdcv-c396891/src/utils.cpp:48:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/utils.cpp:67:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/utils.cpp:124:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hex [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/dictziplib.cpp:211:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/dictziplib.cpp:288:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/utils.cpp:48:29: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/utils.cpp:95:51: style:inconclusive: Function 'json_escape_string' argument 1 names different: declaration 'str' definition 's'. [funcArgNamesDifferent] Dushistov-sdcv-c396891/src/utils.hpp:78:58: note: Function 'json_escape_string' argument 1 names different: declaration 'str' definition 's'. Dushistov-sdcv-c396891/src/utils.cpp:95:51: note: Function 'json_escape_string' argument 1 names different: declaration 'str' definition 's'. Dushistov-sdcv-c396891/src/stardict_lib.hpp:55:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/sdcv.cpp:66:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/sdcv.cpp:262:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::start' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::end' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::size' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::type' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::zStream' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::initialized' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::headerLength' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::method' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::flags' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::mtime' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::extraFlags' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::os' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::version' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::chunkLength' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::chunkCount' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::chunks' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::offsets' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::crc' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::length' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::compressedLength' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.hpp:21:5: warning: Member variable 'DictData::cache' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/dictziplib.cpp:296:9: error: Resource leak: fd [resourceLeak] Dushistov-sdcv-c396891/src/libwrapper.cpp:116:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/libwrapper.cpp:224:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable end [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/libwrapper.cpp:298:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/libwrapper.cpp:312:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/libwrapper.cpp:345:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/dictziplib.cpp:150:38: style: C-style pointer casting [cstyleCast] Dushistov-sdcv-c396891/src/dictziplib.cpp:197:28: style: C-style pointer casting [cstyleCast] Dushistov-sdcv-c396891/src/dictziplib.cpp:256:21: style: C-style pointer casting [cstyleCast] Dushistov-sdcv-c396891/src/dictziplib.cpp:422:52: style: C-style pointer casting [cstyleCast] Dushistov-sdcv-c396891/src/dictziplib.cpp:432:41: style: C-style pointer casting [cstyleCast] Dushistov-sdcv-c396891/src/dictziplib.cpp:434:42: style: C-style pointer casting [cstyleCast] Dushistov-sdcv-c396891/src/dictziplib.cpp:117:19: style: The scope of the variable 'si1' can be reduced. [variableScope] Dushistov-sdcv-c396891/src/dictziplib.cpp:117:24: style: The scope of the variable 'si2' can be reduced. [variableScope] Dushistov-sdcv-c396891/src/dictziplib.cpp:119:9: style: The scope of the variable 'extraLength' can be reduced. [variableScope] Dushistov-sdcv-c396891/src/dictziplib.cpp:119:22: style: The scope of the variable 'subLength' can be reduced. [variableScope] Dushistov-sdcv-c396891/src/dictziplib.cpp:125:9: style: The scope of the variable 'count' can be reduced. [variableScope] Dushistov-sdcv-c396891/src/dictziplib.cpp:348:9: style: The scope of the variable 'found' can be reduced. [variableScope] Dushistov-sdcv-c396891/src/dictziplib.cpp:348:16: style: The scope of the variable 'target' can be reduced. [variableScope] Dushistov-sdcv-c396891/src/dictziplib.cpp:348:24: style: The scope of the variable 'lastStamp' can be reduced. [variableScope] Dushistov-sdcv-c396891/src/dictziplib.cpp:114:46: style:inconclusive: Function 'read_header' argument 1 names different: declaration 'filename' definition 'fname'. [funcArgNamesDifferent] Dushistov-sdcv-c396891/src/dictziplib.hpp:55:40: note: Function 'read_header' argument 1 names different: declaration 'filename' definition 'fname'. Dushistov-sdcv-c396891/src/dictziplib.cpp:114:46: note: Function 'read_header' argument 1 names different: declaration 'filename' definition 'fname'. Dushistov-sdcv-c396891/src/dictziplib.cpp:269:40: style:inconclusive: Function 'open' argument 1 names different: declaration 'filename' definition 'fname'. [funcArgNamesDifferent] Dushistov-sdcv-c396891/src/dictziplib.hpp:23:34: note: Function 'open' argument 1 names different: declaration 'filename' definition 'fname'. Dushistov-sdcv-c396891/src/dictziplib.cpp:269:40: note: Function 'open' argument 1 names different: declaration 'filename' definition 'fname'. Dushistov-sdcv-c396891/src/dictziplib.cpp:124:19: style: Local variable 'crc' shadows outer variable [shadowVariable] Dushistov-sdcv-c396891/src/dictziplib.hpp:49:19: note: Shadowed declaration Dushistov-sdcv-c396891/src/dictziplib.cpp:124:19: note: Shadow variable Dushistov-sdcv-c396891/src/dictziplib.cpp:341:19: style: Local variable 'end' shadows outer variable [shadowVariable] Dushistov-sdcv-c396891/src/dictziplib.hpp:29:17: note: Shadowed declaration Dushistov-sdcv-c396891/src/dictziplib.cpp:341:19: note: Shadow variable Dushistov-sdcv-c396891/src/dictziplib.cpp:177:23: style: Variable 'subLength' is assigned a value that is never used. [unreadVariable] Dushistov-sdcv-c396891/src/dictziplib.cpp:178:23: style: Variable 'subLength' is assigned a value that is never used. [unreadVariable] Dushistov-sdcv-c396891/src/stardict_lib.hpp:32:5: warning: Member variable 'cacheItem::offset' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/stardict_lib.hpp:124:5: warning: Member variable 'Dict::wordcount' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/stardict_lib.hpp:124:5: warning: Member variable 'Dict::syn_wordcount' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/stardict_lib.hpp:169:5: warning: Member variable 'Libs::fuzzy_' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/stardict_lib.hpp:169:5: warning: Member variable 'Libs::verbose_' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/stardict_lib.hpp:171:9: performance: Variable 'progress_func' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] Dushistov-sdcv-c396891/src/stardict_lib.hpp:114:18: style:inconclusive: Technically the member function 'SynFile::get_key' can be const. [functionConst] Dushistov-sdcv-c396891/src/stardict_lib.hpp:169:5: style: Class 'Libs' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Dushistov-sdcv-c396891/src/sdcv.cpp:275:31: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Dushistov-sdcv-c396891/src/sdcv.cpp:277:31: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Dushistov-sdcv-c396891/src/sdcv.cpp:90:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:92:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:94:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:95:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:97:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:99:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:101:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:103:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:105:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:107:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:109:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:110:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:112:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:114:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:116:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:116:30: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:127:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:133:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:194:33: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:211:37: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:219:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:240:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:248:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/sdcv.cpp:260:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/stardict_lib.cpp:84:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/stardict_lib.cpp:578:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/stardict_lib.cpp:642:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/stardict_lib.cpp:930:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] Dushistov-sdcv-c396891/src/libwrapper.cpp:304:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/libwrapper.cpp:345:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/libwrapper.cpp:403:24: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/libwrapper.cpp:421:39: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/libwrapper.cpp:431:28: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/libwrapper.cpp:437:45: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/libwrapper.cpp:450:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Dushistov-sdcv-c396891/src/libwrapper.cpp:374:10: style: The scope of the variable 'first_result' can be reduced. [variableScope] Dushistov-sdcv-c396891/src/libwrapper.cpp:230:73: style:inconclusive: Function 'LookupWithRule' argument 2 names different: declaration 'res_lsit' definition 'res_list'. [funcArgNamesDifferent] Dushistov-sdcv-c396891/src/libwrapper.hpp:58:68: note: Function 'LookupWithRule' argument 2 names different: declaration 'res_lsit' definition 'res_list'. Dushistov-sdcv-c396891/src/libwrapper.cpp:230:73: note: Function 'LookupWithRule' argument 2 names different: declaration 'res_lsit' definition 'res_list'. Dushistov-sdcv-c396891/src/libwrapper.cpp:446:21: style: Local variable 'loc_str' shadows outer argument [shadowArgument] Dushistov-sdcv-c396891/src/libwrapper.cpp:323:51: note: Shadowed declaration Dushistov-sdcv-c396891/src/libwrapper.cpp:446:21: note: Shadow variable Dushistov-sdcv-c396891/src/libwrapper.cpp:207:24: style: Variable 'wordIdx' can be declared as reference to const [constVariableReference] Dushistov-sdcv-c396891/src/libwrapper.cpp:332:12: performance: Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant. [stlcstrParam] Dushistov-sdcv-c396891/src/libwrapper.cpp:425:24: performance: Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant. [stlcstrParam] Dushistov-sdcv-c396891/src/libwrapper.cpp:208:26: style: Consider using std::transform algorithm instead of a raw loop. [useStlAlgorithm] Dushistov-sdcv-c396891/src/libwrapper.cpp:119:40: style: Variable 'color' is assigned a value that is never used. [unreadVariable] Dushistov-sdcv-c396891/src/stardict_lib.cpp:423:5: warning: Member variable 'OffsetIndex::wordcount' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/stardict_lib.cpp:423:5: warning: Member variable 'OffsetIndex::wordentry_buf' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/stardict_lib.cpp:423:5: warning: Member variable 'OffsetIndex::first' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/stardict_lib.cpp:423:5: warning: Member variable 'OffsetIndex::last' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/stardict_lib.cpp:423:5: warning: Member variable 'OffsetIndex::middle' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/stardict_lib.cpp:423:5: warning: Member variable 'OffsetIndex::real_last' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/stardict_lib.cpp:423:5: warning: Member variable 'IIndexFile::wordentry_offset' is not initialized in the constructor. Maybe it should be initialized directly in the class IIndexFile? [uninitDerivedMemberVar] Dushistov-sdcv-c396891/src/stardict_lib.cpp:423:5: warning: Member variable 'IIndexFile::wordentry_size' is not initialized in the constructor. Maybe it should be initialized directly in the class IIndexFile? [uninitDerivedMemberVar] Dushistov-sdcv-c396891/src/stardict_lib.cpp:470:9: warning: Member variable 'page_t::entries' is not initialized in the constructor. [uninitMemberVar] Dushistov-sdcv-c396891/src/stardict_lib.cpp:487:5: warning: Member variable 'IIndexFile::wordentry_offset' is not initialized in the constructor. Maybe it should be initialized directly in the class IIndexFile? [uninitDerivedMemberVar] Dushistov-sdcv-c396891/src/stardict_lib.cpp:487:5: warning: Member variable 'IIndexFile::wordentry_size' is not initialized in the constructor. Maybe it should be initialized directly in the class IIndexFile? [uninitDerivedMemberVar] Dushistov-sdcv-c396891/src/stardict_lib.cpp:427:6: style: The destructor '~OffsetIndex' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] Dushistov-sdcv-c396891/src/stardict_lib.hpp:93:14: note: Virtual destructor in base class Dushistov-sdcv-c396891/src/stardict_lib.cpp:427:6: note: Destructor in derived class Dushistov-sdcv-c396891/src/stardict_lib.cpp:491:6: style: The destructor '~WordListIndex' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] Dushistov-sdcv-c396891/src/stardict_lib.hpp:93:14: note: Virtual destructor in base class Dushistov-sdcv-c396891/src/stardict_lib.cpp:491:6: note: Destructor in derived class Dushistov-sdcv-c396891/src/stardict_lib.cpp:1031:9: style: Condition '!bFound' is always true [knownConditionTrueFalse] Dushistov-sdcv-c396891/src/stardict_lib.cpp:1028:19: note: Assignment 'bFound=false', assigned value is 0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1031:9: note: Condition '!bFound' is always true Dushistov-sdcv-c396891/src/stardict_lib.cpp:183:35: style: C-style pointer casting [cstyleCast] Dushistov-sdcv-c396891/src/stardict_lib.cpp:218:16: style: C-style pointer casting [cstyleCast] Dushistov-sdcv-c396891/src/stardict_lib.cpp:297:16: style: C-style pointer casting [cstyleCast] Dushistov-sdcv-c396891/src/stardict_lib.cpp:767:18: style: C-style pointer casting [cstyleCast] Dushistov-sdcv-c396891/src/stardict_lib.cpp:1069:27: style: C-style pointer casting [cstyleCast] Dushistov-sdcv-c396891/src/stardict_lib.cpp:1533:31: style: C-style pointer casting [cstyleCast] Dushistov-sdcv-c396891/src/stardict_lib.cpp:511:11: style: The scope of the variable 'len' can be reduced. [variableScope] Dushistov-sdcv-c396891/src/stardict_lib.cpp:630:16: style: The scope of the variable 'index_size' can be reduced. [variableScope] Dushistov-sdcv-c396891/src/stardict_lib.cpp:809:14: style: The scope of the variable 'cmpint' can be reduced. [variableScope] Dushistov-sdcv-c396891/src/stardict_lib.cpp:880:14: style: The scope of the variable 'cmpint' can be reduced. [variableScope] Dushistov-sdcv-c396891/src/stardict_lib.cpp:315:53: style: Parameter 'SearchWords' can be declared as reference to const [constParameterReference] diff: 2.17.0 Dushistov-sdcv-c396891/src/libwrapper.cpp:304:20: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/libwrapper.cpp:304:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/libwrapper.cpp:345:25: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/libwrapper.cpp:345:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/libwrapper.cpp:403:24: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/libwrapper.cpp:403:24: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/libwrapper.cpp:421:39: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/libwrapper.cpp:421:39: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/libwrapper.cpp:431:28: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/libwrapper.cpp:431:28: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/libwrapper.cpp:437:45: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/libwrapper.cpp:437:45: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/libwrapper.cpp:450:20: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/libwrapper.cpp:450:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/libwrapper.cpp:52:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] Dushistov-sdcv-c396891/src/libwrapper.cpp:163:34: note: Assuming allocation function fails Dushistov-sdcv-c396891/src/libwrapper.cpp:163:34: note: Assignment 'm_str=g_strndup(p,sec_size)', assigned value is 0 Dushistov-sdcv-c396891/src/libwrapper.cpp:164:34: note: Calling function 'xdxf2text', 1st argument 'm_str' value is 0 Dushistov-sdcv-c396891/src/libwrapper.cpp:52:13: note: Null pointer dereference 2.17.0 Dushistov-sdcv-c396891/src/libwrapper.cpp:53:14: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] Dushistov-sdcv-c396891/src/libwrapper.cpp:163:34: note: Assuming allocation function fails Dushistov-sdcv-c396891/src/libwrapper.cpp:163:34: note: Assignment 'm_str=g_strndup(p,sec_size)', assigned value is 0 Dushistov-sdcv-c396891/src/libwrapper.cpp:164:34: note: Calling function 'xdxf2text', 1st argument 'm_str' value is 0 Dushistov-sdcv-c396891/src/libwrapper.cpp:53:14: note: Null pointer dereference 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:101:11: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:101:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:103:11: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:103:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:105:11: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:105:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:107:11: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:107:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:109:11: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:109:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:110:11: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:110:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:112:11: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:112:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:114:11: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:114:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:116:11: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:116:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:116:30: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:127:25: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:127:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:133:16: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:133:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:194:33: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:194:33: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:211:37: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:211:37: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:219:25: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:219:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:240:25: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:240:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:248:25: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:248:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:260:16: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:260:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:90:11: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:90:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:92:11: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:92:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:94:11: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:94:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:95:11: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:95:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:97:11: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:97:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/sdcv.cpp:99:11: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/sdcv.cpp:99:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1056:24: warning: If memory allocation fails, then there is a possible null pointer dereference: casestr [nullPointerOutOfMemory] Dushistov-sdcv-c396891/src/stardict_lib.cpp:1053:38: note: Assuming allocation function fails Dushistov-sdcv-c396891/src/stardict_lib.cpp:1053:38: note: Assignment 'casestr=g_strdup_printf("%s%s",firstchar,nextchar)', assigned value is 0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1056:24: note: Null pointer dereference 2.17.0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1081:32: warning: If memory allocation fails, then there is a possible null pointer dereference: casestr [nullPointerOutOfMemory] Dushistov-sdcv-c396891/src/stardict_lib.cpp:1080:46: note: Assuming allocation function fails Dushistov-sdcv-c396891/src/stardict_lib.cpp:1080:46: note: Assignment 'casestr=g_ascii_strdown(sNewWord,-1)', assigned value is 0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1081:32: note: Null pointer dereference 2.17.0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1105:40: warning: If memory allocation fails, then there is a possible null pointer dereference: casestr [nullPointerOutOfMemory] Dushistov-sdcv-c396891/src/stardict_lib.cpp:1104:54: note: Assuming allocation function fails Dushistov-sdcv-c396891/src/stardict_lib.cpp:1104:54: note: Assignment 'casestr=g_ascii_strdown(sNewWord,-1)', assigned value is 0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1105:40: note: Null pointer dereference 2.17.0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1120:36: warning: If memory allocation fails, then there is a possible null pointer dereference: casestr [nullPointerOutOfMemory] Dushistov-sdcv-c396891/src/stardict_lib.cpp:1119:50: note: Assuming allocation function fails Dushistov-sdcv-c396891/src/stardict_lib.cpp:1119:50: note: Assignment 'casestr=g_ascii_strdown(sNewWord,-1)', assigned value is 0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1120:36: note: Null pointer dereference 2.17.0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1144:40: warning: If memory allocation fails, then there is a possible null pointer dereference: casestr [nullPointerOutOfMemory] Dushistov-sdcv-c396891/src/stardict_lib.cpp:1143:54: note: Assuming allocation function fails Dushistov-sdcv-c396891/src/stardict_lib.cpp:1143:54: note: Assignment 'casestr=g_ascii_strdown(sNewWord,-1)', assigned value is 0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1144:40: note: Null pointer dereference 2.17.0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1159:36: warning: If memory allocation fails, then there is a possible null pointer dereference: casestr [nullPointerOutOfMemory] Dushistov-sdcv-c396891/src/stardict_lib.cpp:1158:50: note: Assuming allocation function fails Dushistov-sdcv-c396891/src/stardict_lib.cpp:1158:50: note: Assignment 'casestr=g_ascii_strdown(sNewWord,-1)', assigned value is 0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1159:36: note: Null pointer dereference 2.17.0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1175:36: warning: If memory allocation fails, then there is a possible null pointer dereference: casestr [nullPointerOutOfMemory] Dushistov-sdcv-c396891/src/stardict_lib.cpp:1174:50: note: Assuming allocation function fails Dushistov-sdcv-c396891/src/stardict_lib.cpp:1174:50: note: Assignment 'casestr=g_ascii_strdown(sNewWord,-1)', assigned value is 0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1175:36: note: Null pointer dereference 2.17.0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1195:32: warning: If memory allocation fails, then there is a possible null pointer dereference: casestr [nullPointerOutOfMemory] Dushistov-sdcv-c396891/src/stardict_lib.cpp:1194:46: note: Assuming allocation function fails Dushistov-sdcv-c396891/src/stardict_lib.cpp:1194:46: note: Assignment 'casestr=g_ascii_strdown(sNewWord,-1)', assigned value is 0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1195:32: note: Null pointer dereference 2.17.0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1218:40: warning: If memory allocation fails, then there is a possible null pointer dereference: casestr [nullPointerOutOfMemory] Dushistov-sdcv-c396891/src/stardict_lib.cpp:1217:54: note: Assuming allocation function fails Dushistov-sdcv-c396891/src/stardict_lib.cpp:1217:54: note: Assignment 'casestr=g_ascii_strdown(sNewWord,-1)', assigned value is 0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1218:40: note: Null pointer dereference 2.17.0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1233:36: warning: If memory allocation fails, then there is a possible null pointer dereference: casestr [nullPointerOutOfMemory] Dushistov-sdcv-c396891/src/stardict_lib.cpp:1232:50: note: Assuming allocation function fails Dushistov-sdcv-c396891/src/stardict_lib.cpp:1232:50: note: Assignment 'casestr=g_ascii_strdown(sNewWord,-1)', assigned value is 0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1233:36: note: Null pointer dereference 2.17.0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1257:32: warning: If memory allocation fails, then there is a possible null pointer dereference: casestr [nullPointerOutOfMemory] Dushistov-sdcv-c396891/src/stardict_lib.cpp:1256:46: note: Assuming allocation function fails Dushistov-sdcv-c396891/src/stardict_lib.cpp:1256:46: note: Assignment 'casestr=g_ascii_strdown(sNewWord,-1)', assigned value is 0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1257:32: note: Null pointer dereference 2.17.0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1280:32: warning: If memory allocation fails, then there is a possible null pointer dereference: casestr [nullPointerOutOfMemory] Dushistov-sdcv-c396891/src/stardict_lib.cpp:1279:46: note: Assuming allocation function fails Dushistov-sdcv-c396891/src/stardict_lib.cpp:1279:46: note: Assignment 'casestr=g_ascii_strdown(sNewWord,-1)', assigned value is 0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1280:32: note: Null pointer dereference 2.17.0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1299:32: warning: If memory allocation fails, then there is a possible null pointer dereference: casestr [nullPointerOutOfMemory] Dushistov-sdcv-c396891/src/stardict_lib.cpp:1298:46: note: Assuming allocation function fails Dushistov-sdcv-c396891/src/stardict_lib.cpp:1298:46: note: Assignment 'casestr=g_ascii_strdown(sNewWord,-1)', assigned value is 0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1299:32: note: Null pointer dereference 2.17.0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1318:32: warning: If memory allocation fails, then there is a possible null pointer dereference: casestr [nullPointerOutOfMemory] Dushistov-sdcv-c396891/src/stardict_lib.cpp:1317:46: note: Assuming allocation function fails Dushistov-sdcv-c396891/src/stardict_lib.cpp:1317:46: note: Assignment 'casestr=g_ascii_strdown(sNewWord,-1)', assigned value is 0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:1318:32: note: Null pointer dereference head Dushistov-sdcv-c396891/src/stardict_lib.cpp:315:53: style: Parameter 'SearchWords' can be declared as reference to const [constParameterReference] 2.17.0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:590:49: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] Dushistov-sdcv-c396891/src/stardict_lib.cpp:589:38: note: Assuming allocation function fails Dushistov-sdcv-c396891/src/stardict_lib.cpp:589:38: note: Assignment 'base=g_path_get_basename(url.c_str())', assigned value is 0 Dushistov-sdcv-c396891/src/stardict_lib.cpp:590:49: note: Null pointer addition 2.17.0 Dushistov-sdcv-c396891/src/utils.cpp:48:29: style: C-style pointer casting [cstyleCast] head Dushistov-sdcv-c396891/src/utils.cpp:48:29: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] DONE