Fixed findings

List of Findings

Error: COMPILER_WARNING: [#def1]
libdb-5.3.28-build/db-5.3.28/db_converter-1.0.2/convert.cc: scope_hint: In function ‘int main(int, char**)’
libdb-5.3.28-build/db-5.3.28/db_converter-1.0.2/convert.cc:69:9: warning[-Wdelete-non-virtual-dtor]: deleting object of polymorphic class type ‘DB_’ which has non-virtual destructor might cause undefined behavior
#   69 |         delete x;
#      |         ^~~~~~~~
#   67|   	}
#   68|       	b->close_db();
#   69|-> 	delete x;
#   70|   	delete b;
#   71|   	return 0;

Error: COMPILER_WARNING: [#def2]
libdb-5.3.28-build/db-5.3.28/db_converter-1.0.2/convert.cc:70:9: warning[-Wdelete-non-virtual-dtor]: deleting object of polymorphic class type ‘DB_’ which has non-virtual destructor might cause undefined behavior
#   70 |         delete b;
#      |         ^~~~~~~~
#   68|       	b->close_db();
#   69|   	delete x;
#   70|-> 	delete b;
#   71|   	return 0;
#   72|   }

Error: CPPCHECK_WARNING (CWE-404): [#def3]
libdb-5.3.28-build/db-5.3.28/db_converter-1.0.2/convert_db.h:28: error[virtualDestructor]: Class 'DB_' which is inherited by class 'GDBM_' does not have a virtual destructor.
#   26|    * "Semi" Abstract class for database all database types
#   27|    */
#   28|-> class DB_ {
#   29|   	protected:
#   30|   		DB_type database_type;

Error: CPPCHECK_WARNING (CWE-404): [#def4]
libdb-5.3.28-build/db-5.3.28/db_converter-1.0.2/convert_db.h:28: error[virtualDestructor]: Class 'DB_' which is inherited by class 'LMDB_' does not have a virtual destructor.
#   26|    * "Semi" Abstract class for database all database types
#   27|    */
#   28|-> class DB_ {
#   29|   	protected:
#   30|   		DB_type database_type;

Error: CPPCHECK_WARNING (CWE-404): [#def5]
libdb-5.3.28-build/db-5.3.28/db_converter-1.0.2/convert_db.h:28: error[virtualDestructor]: Class 'DB_' which is inherited by class 'Libdb' does not have a virtual destructor.
#   26|    * "Semi" Abstract class for database all database types
#   27|    */
#   28|-> class DB_ {
#   29|   	protected:
#   30|   		DB_type database_type;

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-126.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-namelibdb-5.3.28-64.fc42
diffbase-store-results-to/tmp/tmpzas_ehdz/libdb-5.3.28-64.fc42.tar.xz
diffbase-time-created2024-11-13 01:34:13
diffbase-time-finished2024-11-13 01:49:31
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpzas_ehdz/libdb-5.3.28-64.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpzas_ehdz/libdb-5.3.28-64.fc42.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-126.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibdb-5.3.28-63.fc41
store-results-to/tmp/tmps86n2a9c/libdb-5.3.28-63.fc41.tar.xz
time-created2024-11-13 01:18:05
time-finished2024-11-13 01:33:47
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmps86n2a9c/libdb-5.3.28-63.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmps86n2a9c/libdb-5.3.28-63.fc41.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9