https://scan.coverity.com/projects/kdb
Details:
Fix out-of-bounds read for defaultSQLTypeName(KDbField::LastType+1)
(CID 66289)
Remove structurally dead code
(coverity)
Add missing member initializations
(coverity)
GIT_SILENT Simplify code
Unused member
KDbTableViewColumn: Replace init() with ctor
SQLite dump: Fix sqlite3_snprintf usage and remove one memory leak
(this is fixed in newer SQLite too)
(coverity)
SDC: don't return from constructor on failed conversion from string, otherwise members initialization won't be complete
(coverity)
Fix possible nullptr dereferences
(coverity)
Fix possible division by 0
(coverity)
GIT_SILENT Remove dead code
(coverity)
GIT_SILENT Remove dead code
(coverity)
GIT_SILENT Fix unchecked return value warnings
(coverity)
KDbRecordData: Fix extra sizeof expression
Details:
"(SIZEOF_MISMATCH)suspicious_pointer_arithmetic: Adding this->m_numCols * 8UL /* sizeof (QVariant *) */ to pointer this->m_data of type QVariant ** is suspicious because adding an integral value to this pointer automatically scales that value by the size, 8 bytes, of the pointed-to type, QVariant *. Most likely, the multiplication by sizeof (QVariant *) in this expression is extraneous and should be eliminated."
(CID 66136)