Newly introduced defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
glib2-2.80.3-build/glib-2.80.3/gio/gdbusconnection.c: scope_hint: In function ‘g_dbus_connection_call_done’
glib2-2.80.3-build/glib-2.80.3/gio/gdbusconnection.c:6329:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
glib2-2.80.3-build/glib-2.80.3/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.80.3-build/glib-2.80.3/glib/gtypes.h:34: included_from: Included from here.
glib2-2.80.3-build/glib-2.80.3/glib/galloca.h:34: included_from: Included from here.
glib2-2.80.3-build/glib-2.80.3/glib/glib.h:32: included_from: Included from here.
glib2-2.80.3-build/glib-2.80.3/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.80.3-build/glib-2.80.3/glib/glib-object.h:24: included_from: Included from here.
glib2-2.80.3-build/glib-2.80.3/gio/gioenums.h:30: included_from: Included from here.
glib2-2.80.3-build/glib-2.80.3/gio/giotypes.h:30: included_from: Included from here.
glib2-2.80.3-build/glib-2.80.3/gio/gdbusauth.h:30: included_from: Included from here.
glib2-2.80.3-build/glib-2.80.3/gio/gdbusconnection.c:100: included_from: Included from here.
glib2-2.80.3-build/glib-2.80.3/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.80.3-build/glib-2.80.3/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.80.3-build/glib-2.80.3/gio/gdbusconnection.c:6313:7: note: in expansion of macro ‘G_UNLIKELY’
# 6327|         else
# 6328|           {
# 6329|->           g_print ("\n"
# 6330|                      "      FAILED: %s\n",
# 6331|                      error->message);

Error: CPPCHECK_WARNING: [#def2]
glib2-2.80.3-build/glib-2.80.3/gio/tests/actions.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
glib2-2.80.3-build/glib-2.80.3/gio/tests/debugcontroller.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def4]
glib2-2.80.3-build/glib-2.80.3/gio/tests/debugcontroller.c:325:3: warning[deadcode.DeadStores]: Value stored to 'handler_id' is never read
#  323|   
#  324|     g_signal_handler_disconnect (controller, handler_id);
#  325|->   handler_id = 0;
#  326|   
#  327|     /* Attach another signal handler which will grant access, and try again. */

Error: CLANG_WARNING: [#def5]
glib2-2.80.3-build/glib-2.80.3/gio/tests/debugcontroller.c:358:3: warning[deadcode.DeadStores]: Value stored to 'handler_id' is never read
#  356|   
#  357|     g_signal_handler_disconnect (controller, handler_id);
#  358|->   handler_id = 0;
#  359|   
#  360|     /* Set the debug status locally. */

Error: CLANG_WARNING: [#def6]
glib2-2.80.3-build/glib-2.80.3/gio/tests/debugcontroller.c:371:3: warning[deadcode.DeadStores]: Value stored to 'notify_id' is never read
#  369|   
#  370|     g_signal_handler_disconnect (controller, notify_id);
#  371|->   notify_id = 0;
#  372|   
#  373|     g_dbus_connection_signal_unsubscribe (remote_connection, properties_changed_id);

Error: CLANG_WARNING: [#def7]
glib2-2.80.3-build/glib-2.80.3/gio/tests/debugcontroller.c:374:3: warning[deadcode.DeadStores]: Value stored to 'properties_changed_id' is never read
#  372|   
#  373|     g_dbus_connection_signal_unsubscribe (remote_connection, properties_changed_id);
#  374|->   properties_changed_id = 0;
#  375|   
#  376|     g_debug_controller_dbus_stop (controller);

Error: CPPCHECK_WARNING: [#def8]
glib2-2.80.3-build/glib-2.80.3/gio/tests/defaultvalue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
glib2-2.80.3-build/glib-2.80.3/gio/tests/fdo-notification-backend.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gapplication.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-connection-slow.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-connection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-error.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-exit-on-close.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def15]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-export.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def16]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-export.c:1132:3: warning[deadcode.DeadStores]: Value stored to 'intern2_foo_reg_id' is never read
# 1130|     g_assert_no_error (error);
# 1131|     g_assert (registration_id > 0);
# 1132|->   intern2_foo_reg_id = registration_id;
# 1133|     num_successful_registrations++;
# 1134|   

Error: CLANG_WARNING: [#def17]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-export.c:1139:3: warning[deadcode.DeadStores]: Value stored to 'intern2_foo_reg_id' is never read
# 1137|     g_main_context_iteration (NULL, FALSE);
# 1138|     g_assert_cmpint (data.num_unregistered_calls, ==, 2);
# 1139|->   intern2_foo_reg_id = 0;
# 1140|   
# 1141|     /* register it back */

Error: CPPCHECK_WARNING: [#def18]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-introspection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-method-invocation.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-names.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-proxy-threads.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-proxy-unique-name.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-proxy-well-known-name.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-proxy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def25]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-proxy.c:647:7: warning[deadcode.DeadStores]: Value stored to 'value' is never read
#  645|         g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING,
#  646|                                "*Trying to get property i with type i but according to the expected interface the type is u*");
#  647|->       value = g_dbus_proxy_get_cached_property (proxy, "i");
#  648|         g_test_assert_expected_messages ();
#  649|       }

Error: CPPCHECK_WARNING: [#def26]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-subscribe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def27]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-test-codegen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def28]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-test-codegen.c:318:3: warning[deadcode.DeadStores]: Value stored to 'authorized' is never read
#  316|     gboolean authorized;
#  317|   
#  318|->   authorized = FALSE;
#  319|   
#  320|     method_name = g_dbus_method_invocation_get_method_name (invocation);

Error: CLANG_WARNING: [#def29]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-test-codegen.c:357:3: warning[deadcode.DeadStores]: Value stored to 'authorized' is never read
#  355|     gboolean authorized;
#  356|   
#  357|->   authorized = FALSE;
#  358|   
#  359|     method_name = g_dbus_method_invocation_get_method_name (invocation);

Error: CPPCHECK_WARNING: [#def30]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-threading.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def31]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gdbus-threading.c:309:3: warning[deadcode.DeadStores]: Value stored to 'subscription_id' is never read
#  307|   
#  308|     g_dbus_connection_signal_unsubscribe (c, subscription_id);
#  309|->   subscription_id = 0;
#  310|   
#  311|     while (!data.unsubscribe_complete)

Error: CPPCHECK_WARNING: [#def32]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gmenumodel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def33]
glib2-2.80.3-build/glib-2.80.3/gio/tests/gnotification.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmimeglob.c:277:10: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmimeglob.h:32:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmimeglob.c:563:1: note: in expansion of macro ‘_xdg_glob_hash_append_glob’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmimeglob.h:33:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmimeglob.c:574:10: note: in expansion of macro ‘_xdg_glob_determine_type’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmimeglob.c: scope_hint: In function ‘_xdg_glob_hash_insert_ucs4’
#  275|         node->child = _xdg_glob_hash_insert_ucs4 (node->child, text, mime_type, weight, case_sensitive);
#  276|       }
#  277|->   return glob_hash_node;
#  278|   }
#  279|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmimeglob.c:277:10: warning[-Wanalyzer-malloc-leak]: leak of ‘node’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmimeglob.h:32:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmimeglob.c:563:1: note: in expansion of macro ‘_xdg_glob_hash_append_glob’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmimeglob.h:33:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmimeglob.c:574:10: note: in expansion of macro ‘_xdg_glob_determine_type’
glib2-2.80.3-build/glib-2.80.3/gio/xdgmime/xdgmimeglob.c: scope_hint: In function ‘_xdg_glob_hash_insert_ucs4’
#  275|         node->child = _xdg_glob_hash_insert_ucs4 (node->child, text, mime_type, weight, case_sensitive);
#  276|       }
#  277|->   return glob_hash_node;
#  278|   }
#  279|   

Error: CPPCHECK_WARNING: [#def36]
glib2-2.80.3-build/glib-2.80.3/redhat-linux-build/gio/tests/fake-document-portal-generated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def37]
glib2-2.80.3-build/glib-2.80.3/redhat-linux-build/gio/tests/gdbus-test-codegen-generated-min-required-2-64.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def38]
glib2-2.80.3-build/glib-2.80.3/redhat-linux-build/gio/tests/gdbus-test-codegen-generated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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-142.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-nameglib2-2.80.0-1.fc40
diffbase-store-results-to/tmp/tmpjqrfrym5/glib2-2.80.0-1.fc40.tar.xz
diffbase-time-created2024-07-03 12:49:19
diffbase-time-finished2024-07-03 13:02:30
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpjqrfrym5/glib2-2.80.0-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpjqrfrym5/glib2-2.80.0-1.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-142.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameglib2-2.80.3-1.fc41
store-results-to/tmp/tmpxtz03tpx/glib2-2.80.3-1.fc41.tar.xz
time-created2024-07-03 13:03:01
time-finished2024-07-03 13:16:46
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpxtz03tpx/glib2-2.80.3-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpxtz03tpx/glib2-2.80.3-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9