Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
ibus-1.5.33-rc2/bus/dbusimpl.c:450:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘owner’
ibus-1.5.33-rc2/bus/dbusimpl.c:1744:1: enter_function: entry to ‘bus_dbus_impl_connection_destroy_cb’
ibus-1.5.33-rc2/bus/dbusimpl.c:1786:12: branch_true: following ‘true’ branch (when ‘names’ is non-NULL)...
ibus-1.5.33-rc2/bus/dbusimpl.c:1787:22: branch_true: ...to here
ibus-1.5.33-rc2/bus/dbusimpl.c:1791:37: call_function: calling ‘bus_name_service_find_owner’ from ‘bus_dbus_impl_connection_destroy_cb’
ibus-1.5.33-rc2/bus/dbusimpl.c:1791:37: return_function: returning to ‘bus_dbus_impl_connection_destroy_cb’ from ‘bus_name_service_find_owner’
ibus-1.5.33-rc2/bus/dbusimpl.c:1794:9: call_function: calling ‘bus_name_service_remove_owner’ from ‘bus_dbus_impl_connection_destroy_cb’
#  448|   
#  449|   
#  450|->     owners = bus_name_service_find_owner_link (service, owner->conn);
#  451|       g_assert (owners != NULL);
#  452|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
ibus-1.5.33-rc2/bus/dbusimpl.c:453:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘owners’
#  451|       g_assert (owners != NULL);
#  452|   
#  453|->     if (owners->data == bus_name_service_get_primary_owner (service)) {
#  454|           BusConnectionOwner *_new = NULL;
#  455|           if (owners->next != NULL) {

Error: GCC_ANALYZER_WARNING (CWE-835): [#def3]
ibus-1.5.33-rc2/bus/engineproxy.c:818:9: warning[-Wanalyzer-infinite-loop]: infinite loop
#  816|           /* show abrt local variable */
#  817|           gchar *message = g_strdup ((*error)->message);
#  818|->         g_error ("%s", message);
#  819|       }
#  820|       const gchar *layout = ibus_engine_desc_get_layout (desc);

Error: COMPILER_WARNING (CWE-1164): [#def4]
ibus-1.5.33-rc2/client/wayland/ibuswaylandim.c:2287:1: warning[-Wunused-function]: 'ibus_wayland_im_open_log' defined but not used
# 2287 | ibus_wayland_im_open_log (IBusWaylandIM *wlim)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~
# 2285|   
# 2286|   static gboolean
# 2287|-> ibus_wayland_im_open_log (IBusWaylandIM *wlim)
# 2288|   {
# 2289|       IBusWaylandIMPrivate *priv;

Error: COMPILER_WARNING (CWE-1164): [#def5]
ibus-1.5.33-rc2/client/wayland/ibuswaylandim.c:2287:1: warning[-Wunused-function]: ‘ibus_wayland_im_open_log’ defined but not used
# 2287 | ibus_wayland_im_open_log (IBusWaylandIM *wlim)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~
# 2285|   
# 2286|   static gboolean
# 2287|-> ibus_wayland_im_open_log (IBusWaylandIM *wlim)
# 2288|   {
# 2289|       IBusWaylandIMPrivate *priv;

Error: COMPILER_WARNING: [#def6]
ibus-1.5.33-rc2/src/ibuscomponent.c: scope_hint: In function 'ibus_component_new_varargs'
ibus-1.5.33-rc2/src/ibuscomponent.c:732:27: warning[-Wunused-but-set-variable=]: variable 'priv' set but not used
#  732 |     IBusComponentPrivate *priv;
#      |                           ^~~~
#  730|       va_list var_args;
#  731|       IBusComponent *component;
#  732|->     IBusComponentPrivate *priv;
#  733|   
#  734|       g_assert (first_property_name);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
ibus-1.5.33-rc2/src/ibuscomposetable.c:1525:25: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ibus_compose_seqs'
ibus-1.5.33-rc2/src/ibuscomposetable.c:1406:5: branch_true: following 'true' branch (when 'compose_list' is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1408:20: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1412:31: branch_true: following 'true' branch (when 'list' is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1413:9: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1414:12: branch_false: following 'false' branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1415:13: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1414:13: branch_false: following 'false' branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1412:45: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1421:8: branch_false: following 'false' branch (when 's_size_16bit == 0')...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1435:8: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1435:8: branch_false: following 'false' branch (when 's_size_16bit >= s_size_total')...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1500:8: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1500:8: branch_false: following 'false' branch (when 's_size_16bit == 0')...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1509:5: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1509:31: branch_true: following 'true' branch (when 'list' is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1511:9: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1513:20: branch_true: following 'true' branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1513:20: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1519:21: branch_true: following 'true' branch (when 'i < max_compose_len')...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1520:17: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1520:16: branch_true: following 'true' branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1520:16: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1521:29: branch_true: following 'true' branch (when 'j < max_compose_len')...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1522:24: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1522:24: branch_true: following 'true' branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1525:55: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1525:25: danger: dereference of NULL 'ibus_compose_seqs_32bit_first + (long unsigned int)m * 2'
# 1523|                           g_assert (m < (s_size_total - s_size_16bit)
# 1524|                                     * n_index_stride);
# 1525|->                         ibus_compose_seqs_32bit_first[m++] = 0;
# 1526|                       } else {
# 1527|                           g_assert (n < s_size_16bit * n_index_stride);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
ibus-1.5.33-rc2/src/ibuscomposetable.c:1525:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ibus_compose_seqs’
ibus-1.5.33-rc2/src/ibuscomposetable.c:1406:5: branch_true: following ‘true’ branch (when ‘compose_list’ is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1408:20: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1412:31: branch_true: following ‘true’ branch (when ‘list’ is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1413:9: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1414:12: branch_false: following ‘false’ branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1415:13: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1414:13: branch_false: following ‘false’ branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1412:45: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1421:8: branch_false: following ‘false’ branch (when ‘s_size_16bit == 0’)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1435:8: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1435:8: branch_false: following ‘false’ branch (when ‘s_size_16bit >= s_size_total’)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1500:8: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1500:8: branch_false: following ‘false’ branch (when ‘s_size_16bit == 0’)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1509:5: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1509:31: branch_true: following ‘true’ branch (when ‘list’ is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1511:9: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1513:20: branch_true: following ‘true’ branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1513:20: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1519:21: branch_true: following ‘true’ branch (when ‘i < max_compose_len’)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1520:17: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1520:16: branch_true: following ‘true’ branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1520:16: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1521:29: branch_true: following ‘true’ branch (when ‘j < max_compose_len’)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1522:24: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1522:24: branch_true: following ‘true’ branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1525:55: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1525:25: danger: dereference of NULL ‘ibus_compose_seqs_32bit_first + (long unsigned int)m * 2’
# 1523|                           g_assert (m < (s_size_total - s_size_16bit)
# 1524|                                     * n_index_stride);
# 1525|->                         ibus_compose_seqs_32bit_first[m++] = 0;
# 1526|                       } else {
# 1527|                           g_assert (n < s_size_16bit * n_index_stride);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
ibus-1.5.33-rc2/src/ibuscomposetable.c:1535:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ibus_compose_seqs'
ibus-1.5.33-rc2/src/ibuscomposetable.c:1406:5: branch_true: following 'true' branch (when 'compose_list' is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1408:20: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1412:31: branch_true: following 'true' branch (when 'list' is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1413:9: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1414:12: branch_false: following 'false' branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1415:13: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1414:13: branch_false: following 'false' branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1412:45: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1421:8: branch_false: following 'false' branch (when 's_size_16bit == 0')...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1435:8: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1435:8: branch_false: following 'false' branch (when 's_size_16bit >= s_size_total')...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1500:8: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1500:8: branch_false: following 'false' branch (when 's_size_16bit == 0')...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1509:5: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1509:31: branch_true: following 'true' branch (when 'list' is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1511:9: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1513:20: branch_true: following 'true' branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1513:20: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1519:21: branch_true: following 'true' branch (when 'i < max_compose_len')...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1520:17: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1520:16: branch_false: following 'false' branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1533:16: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1533:16: branch_true: following 'true' branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1535:47: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1535:17: danger: dereference of NULL 'ibus_compose_seqs_32bit_first + (long unsigned int)m * 2'
# 1533|               if (is_32bit) {
# 1534|                   g_assert (m < (s_size_total - s_size_16bit) * n_index_stride);
# 1535|->                 ibus_compose_seqs_32bit_first[m++] =
# 1536|                           (guint16) compose_data->sequence[i];
# 1537|               } else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
ibus-1.5.33-rc2/src/ibuscomposetable.c:1535:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ibus_compose_seqs’
ibus-1.5.33-rc2/src/ibuscomposetable.c:1406:5: branch_true: following ‘true’ branch (when ‘compose_list’ is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1408:20: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1412:31: branch_true: following ‘true’ branch (when ‘list’ is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1413:9: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1414:12: branch_false: following ‘false’ branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1415:13: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1414:13: branch_false: following ‘false’ branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1412:45: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1421:8: branch_false: following ‘false’ branch (when ‘s_size_16bit == 0’)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1435:8: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1435:8: branch_false: following ‘false’ branch (when ‘s_size_16bit >= s_size_total’)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1500:8: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1500:8: branch_false: following ‘false’ branch (when ‘s_size_16bit == 0’)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1509:5: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1509:31: branch_true: following ‘true’ branch (when ‘list’ is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1511:9: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1513:20: branch_true: following ‘true’ branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1513:20: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1519:21: branch_true: following ‘true’ branch (when ‘i < max_compose_len’)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1520:17: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1520:16: branch_false: following ‘false’ branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1533:16: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1533:16: branch_true: following ‘true’ branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1535:47: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1535:17: danger: dereference of NULL ‘ibus_compose_seqs_32bit_first + (long unsigned int)m * 2’
# 1533|               if (is_32bit) {
# 1534|                   g_assert (m < (s_size_total - s_size_16bit) * n_index_stride);
# 1535|->                 ibus_compose_seqs_32bit_first[m++] =
# 1536|                           (guint16) compose_data->sequence[i];
# 1537|               } else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
ibus-1.5.33-rc2/src/ibuscomposetable.c:1545:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ibus_compose_seqs_32bit_second'
ibus-1.5.33-rc2/src/ibuscomposetable.c:1406:5: branch_true: following 'true' branch (when 'compose_list' is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1408:20: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1412:31: branch_true: following 'true' branch (when 'list' is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1413:9: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1414:12: branch_false: following 'false' branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1415:13: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1414:13: branch_false: following 'false' branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1412:45: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1421:8: branch_false: following 'false' branch (when 's_size_16bit == 0')...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1435:8: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1435:8: branch_false: following 'false' branch (when 's_size_16bit >= s_size_total')...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1500:8: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1500:8: branch_false: following 'false' branch (when 's_size_16bit == 0')...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1509:5: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1509:31: branch_true: following 'true' branch (when 'list' is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1511:9: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1519:21: branch_false: following 'false' branch (when 'i >= max_compose_len')...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1542:12: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1542:12: branch_true: following 'true' branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1542:12: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1543:25: branch_true: following 'true' branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1545:56: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1545:17: danger: dereference of NULL 'ibus_compose_seqs_32bit_second + ((long unsigned int)j + v_index_32bit) * 4'
# 1543|               for (j = 0; compose_data->values[j]; j++) {
# 1544|                   g_assert (v_index_32bit + j <  v_size_32bit);
# 1545|->                 memcpy(&ibus_compose_seqs_32bit_second[v_index_32bit + j],
# 1546|                          &compose_data->values[j],
# 1547|                          sizeof *ibus_compose_seqs_32bit_second);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
ibus-1.5.33-rc2/src/ibuscomposetable.c:1545:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ibus_compose_seqs_32bit_second’
ibus-1.5.33-rc2/src/ibuscomposetable.c:1406:5: branch_true: following ‘true’ branch (when ‘compose_list’ is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1408:20: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1412:31: branch_true: following ‘true’ branch (when ‘list’ is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1413:9: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1414:12: branch_false: following ‘false’ branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1415:13: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1414:13: branch_false: following ‘false’ branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1412:45: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1421:8: branch_false: following ‘false’ branch (when ‘s_size_16bit == 0’)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1435:8: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1435:8: branch_false: following ‘false’ branch (when ‘s_size_16bit >= s_size_total’)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1500:8: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1500:8: branch_false: following ‘false’ branch (when ‘s_size_16bit == 0’)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1509:5: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1509:31: branch_true: following ‘true’ branch (when ‘list’ is non-NULL)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1511:9: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1519:21: branch_false: following ‘false’ branch (when ‘i >= max_compose_len’)...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1542:12: branch_false: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1542:12: branch_true: following ‘true’ branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1542:12: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1543:25: branch_true: following ‘true’ branch...
ibus-1.5.33-rc2/src/ibuscomposetable.c:1545:56: branch_true: ...to here
ibus-1.5.33-rc2/src/ibuscomposetable.c:1545:17: danger: dereference of NULL ‘ibus_compose_seqs_32bit_second + ((long unsigned int)j + v_index_32bit) * 4’
# 1543|               for (j = 0; compose_data->values[j]; j++) {
# 1544|                   g_assert (v_index_32bit + j <  v_size_32bit);
# 1545|->                 memcpy(&ibus_compose_seqs_32bit_second[v_index_32bit + j],
# 1546|                          &compose_data->values[j],
# 1547|                          sizeof *ibus_compose_seqs_32bit_second);

Error: COMPILER_WARNING: [#def13]
ibus-1.5.33-rc2/src/ibuscomposetable.c: scope_hint: In function 'ibus_compose_table_list_add_array'
ibus-1.5.33-rc2/src/ibuscomposetable.c:1760:25: warning[-Walloc-size-larger-than=]: argument 1 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807
# 1760 |     ibus_compose_seqs = g_new0 (guint16, length);
#      |                         ^
/usr/include/glib-2.0/glib/gmem.h:102:10: note: in a call to allocation function 'g_malloc0_n' declared here
#  102 | gpointer g_malloc0_n      (gsize         n_blocks,
#      |          ^
# 1758|       }
# 1759|   
# 1760|->     ibus_compose_seqs = g_new0 (guint16, length);
# 1761|       for (i = 0; i < length; i++)
# 1762|           ibus_compose_seqs[i] = data[i];

Error: COMPILER_WARNING: [#def14]
ibus-1.5.33-rc2/src/ibuscomposetable.c:1760:25: warning[-Walloc-size-larger-than=]: argument 1 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807
# 1758|       }
# 1759|   
# 1760|->     ibus_compose_seqs = g_new0 (guint16, length);
# 1761|       for (i = 0; i < length; i++)
# 1762|           ibus_compose_seqs[i] = data[i];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
ibus-1.5.33-rc2/src/ibushotkey.c:436:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'p2'
ibus-1.5.33-rc2/src/ibushotkey.c:423:8: branch_false: following 'false' branch...
ibus-1.5.33-rc2/src/ibushotkey.c:423:8: branch_false: ...to here
ibus-1.5.33-rc2/src/ibushotkey.c:428:18: branch_false: following 'false' branch...
ibus-1.5.33-rc2/src/ibushotkey.c:436:19: branch_false: ...to here
ibus-1.5.33-rc2/src/ibushotkey.c:436:19: danger: dereference of NULL 'p2'
#  434|       g_assert (p2 && p2->event == event);
#  435|   
#  436|->     p2->hotkeys = g_list_remove (p2->hotkeys, p1);
#  437|       if (p2->hotkeys == NULL) {
#  438|           g_array_remove_index_fast (priv->events, i);

Error: COMPILER_WARNING: [#def16]
ibus-1.5.33-rc2/src/ibusmessage.c: scope_hint: In function 'ibus_message_new'
ibus-1.5.33-rc2/src/ibusmessage.c:462:25: warning[-Wunused-but-set-variable=]: variable 'priv' set but not used
#  462 |     IBusMessagePrivate *priv;
#      |                         ^~~~
#  460|       guint n_properties = 4, i;
#  461|       IBusMessage *msg;
#  462|->     IBusMessagePrivate *priv;
#  463|   
#  464|       g_return_val_if_fail (domain > 0 && domain <= G_MAXUINT8, NULL);

Error: COMPILER_WARNING: [#def17]
ibus-1.5.33-rc2/src/ibusserializable.c: scope_hint: In function 'ibus_serializable_serialize_object'
ibus-1.5.33-rc2/src/ibusserializable.c:272:14: warning[-Wunused-but-set-variable=]: variable 'retval' set but not used
#  272 |     gboolean retval;
#      |              ^~~~~~
#  270|   {
#  271|       g_return_val_if_fail (IBUS_IS_SERIALIZABLE (object), FALSE);
#  272|->     gboolean retval;
#  273|   
#  274|       GVariantBuilder builder;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
ibus-1.5.33-rc2/util/IMdkit/FrameMgr.c:873:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'fi'
ibus-1.5.33-rc2/util/IMdkit/FrameMgr.c:2409:12: enter_function: entry to '_FrameInstGetItemSize'
ibus-1.5.33-rc2/util/IMdkit/FrameMgr.c:2455:20: branch_true: following 'true' branch (when 'number != 0')...
ibus-1.5.33-rc2/util/IMdkit/FrameMgr.c:2457:17: branch_true: ...to here
ibus-1.5.33-rc2/util/IMdkit/FrameMgr.c:2457:17: branch_true: following 'true' branch (when 'i >= 0')...
ibus-1.5.33-rc2/util/IMdkit/FrameMgr.c:2458:21: branch_true: ...to here
ibus-1.5.33-rc2/util/IMdkit/FrameMgr.c:2459:25: call_function: calling '_FrameInstGetItemSize' from '_FrameInstGetItemSize'
#  871|       fi = (FrameInst) Xmalloc (sizeof (FrameInstRec));
#  872|   
#  873|->     fi->template = frame;
#  874|       fi->cur_no = 0;
#  875|       ChainMgrInit (&fi->cm);

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.0
diffbase-analyzer-version-gcc-analyzer16.0.0
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-44.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameibus-1.5.34~alpha1-3.fc44
diffbase-store-results-to/tmp/tmpfgy138cg/ibus-1.5.34~alpha1-3.fc44.tar.xz
diffbase-time-created2026-01-08 17:10:28
diffbase-time-finished2026-01-08 17:20:54
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpfgy138cg/ibus-1.5.34~alpha1-3.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpfgy138cg/ibus-1.5.34~alpha1-3.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-44.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameibus-1.5.33~rc2-2.fc43
store-results-to/tmp/tmp4cl97ypj/ibus-1.5.33~rc2-2.fc43.tar.xz
time-created2026-01-08 17:01:56
time-finished2026-01-08 17:09:49
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp4cl97ypj/ibus-1.5.33~rc2-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp4cl97ypj/ibus-1.5.33~rc2-2.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9