Fixed defects

List of Defects

Error: COMPILER_WARNING (CWE-477): [#def1]
gsettings-qt-0-build/~system-settings-touch/gsettings-qt/trunk/src/qconftypes.cpp: scope_hint: In function ‘GVariant* qconf_types_collect_from_variant(const GVariantType*, const QVariant&)’
gsettings-qt-0-build/~system-settings-touch/gsettings-qt/trunk/src/qconftypes.cpp:233:28: warning[-Wdeprecated-declarations]: ‘void* g_memdup(gconstpointer, guint)’ is deprecated: Use 'g_memdup2' instead
#  233 |             data = g_memdup(array.data(), size);
#      |                    ~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
gsettings-qt-0-build/~system-settings-touch/gsettings-qt/trunk/src/qconftypes.h:21: included_from: Included from here.
gsettings-qt-0-build/~system-settings-touch/gsettings-qt/trunk/src/qconftypes.cpp:17: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:350:23: note: declared here
#  350 | gpointer              g_memdup         (gconstpointer mem,
#      |                       ^~~~~~~~
#  231|               gpointer data;
#  232|   
#  233|->             data = g_memdup(array.data(), size);
#  234|   
#  235|               return g_variant_new_from_data(G_VARIANT_TYPE_BYTESTRING,

Error: COMPILER_WARNING (CWE-477): [#def2]
gsettings-qt-0-build/~system-settings-touch/gsettings-qt/trunk/src/qgsettings.cpp: scope_hint: In member function ‘QStringList QGSettings::keys() const’
gsettings-qt-0-build/~system-settings-touch/gsettings-qt/trunk/src/qgsettings.cpp:108:40: warning[-Wdeprecated-declarations]: ‘gchar** g_settings_list_keys(GSettings*)’ is deprecated: Use 'g_settings_schema_list_keys' instead
#  108 |     gchar **keys = g_settings_list_keys(priv->settings);
#      |                    ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gio.h:137: included_from: Included from here.
gsettings-qt-0-build/~system-settings-touch/gsettings-qt/trunk/src/qgsettings.cpp:23: included_from: Included from here.
/usr/include/glib-2.0/gio/gsettings.h:98:25: note: declared here
#   98 | gchar **                g_settings_list_keys                            (GSettings          *settings);
#      |                         ^~~~~~~~~~~~~~~~~~~~
#  106|   {
#  107|       QStringList list;
#  108|->     gchar **keys = g_settings_list_keys(priv->settings);
#  109|       for (int i = 0; keys[i]; i++)
#  110|           list.append(qtify_name(keys[i]));

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-94.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namegsettings-qt-0.2-1.20220807gitd5e002d.fc41
diffbase-store-results-to/tmp/tmpqb8y0b87/gsettings-qt-0.2-1.20220807gitd5e002d.fc41.tar.xz
diffbase-time-created2024-07-03 13:02:01
diffbase-time-finished2024-07-03 13:03:07
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpqb8y0b87/gsettings-qt-0.2-1.20220807gitd5e002d.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpqb8y0b87/gsettings-qt-0.2-1.20220807gitd5e002d.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-94.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegsettings-qt-0-0.30.20180723bzr85.fc40
store-results-to/tmp/tmp1gx25qqg/gsettings-qt-0-0.30.20180723bzr85.fc40.tar.xz
time-created2024-07-03 12:59:58
time-finished2024-07-03 13:01:41
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp1gx25qqg/gsettings-qt-0-0.30.20180723bzr85.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp1gx25qqg/gsettings-qt-0-0.30.20180723bzr85.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9