Fixed findings

List of Findings

Error: COMPILER_WARNING: [#def1]
gtk-4.22.1/demos/gtk-demo/fontify.c: scope_hint: In function ‘insert_tags_for_attributes’
gtk-4.22.1/demos/gtk-demo/fontify.c:173:7: warning[-Wswitch-enum]: enumeration value ‘PANGO_ATTR_WIDTH’ not handled in switch
#  173 |       switch (attr->klass->type)
#      |       ^~~~~~
#  171|         PangoAttribute *attr = l->data;
#  172|   
#  173|->       switch (attr->klass->type)
#  174|           {
#  175|           case PANGO_ATTR_LANGUAGE:

Error: COMPILER_WARNING (CWE-670): [#def2]
gtk-4.22.1/demos/gtk-demo/main.c: scope_hint: In function ‘activate_about’
gtk-4.22.1/demos/gtk-demo/main.c:200:74: warning[-Wduplicated-branches]: this condition has identical branches
#  200 |                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#      |                                                                          ^
#  198|                                PACKAGE_VERSION,
#  199|                                g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#  200|->                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#  201|                                gtk_get_major_version (),
#  202|                                gtk_get_minor_version (),

Error: COMPILER_WARNING (CWE-670): [#def3]
gtk-4.22.1/demos/gtk-demo/main.c: scope_hint: In function ‘main’
gtk-4.22.1/demos/gtk-demo/main.c:1163:59: warning[-Wduplicated-branches]: this condition has identical branches
# 1163 |               g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
#      |                                                           ^
# 1161|                 PACKAGE_VERSION,
# 1162|                 g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
# 1163|->               g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
# 1164|   
# 1165|     g_application_set_version (G_APPLICATION (app), version);

Error: COMPILER_WARNING: [#def4]
gtk-4.22.1/demos/icon-editor/fontify.c: scope_hint: In function ‘insert_tags_for_attributes’
gtk-4.22.1/demos/icon-editor/fontify.c:175:7: warning[-Wswitch-enum]: enumeration value ‘PANGO_ATTR_WIDTH’ not handled in switch
#  175 |       switch (attr->klass->type)
#      |       ^~~~~~
#  173|         PangoAttribute *attr = l->data;
#  174|   
#  175|->       switch (attr->klass->type)
#  176|           {
#  177|           case PANGO_ATTR_LANGUAGE:

Error: COMPILER_WARNING (CWE-670): [#def5]
gtk-4.22.1/demos/icon-editor/icon-editor-application.c: scope_hint: In function ‘activate_about’
gtk-4.22.1/demos/icon-editor/icon-editor-application.c:65:46: warning[-Wduplicated-branches]: this condition has identical branches
#   65 |                              devel ? VCS_TAG : "",
#      |                                              ^
#   63|                                PACKAGE_VERSION,
#   64|                                devel ? "-" : "",
#   65|->                              devel ? VCS_TAG : "",
#   66|                                gtk_get_major_version (),
#   67|                                gtk_get_minor_version (),

Error: COMPILER_WARNING (CWE-670): [#def6]
gtk-4.22.1/demos/icon-editor/icon-editor-application.c: scope_hint: In function ‘icon_editor_application_new’
gtk-4.22.1/demos/icon-editor/icon-editor-application.c:277:31: warning[-Wduplicated-branches]: this condition has identical branches
#  277 |               devel ? VCS_TAG : "");
#      |                               ^
#  275|                 PACKAGE_VERSION,
#  276|                 devel ? "-" : "",
#  277|->               devel ? VCS_TAG : "");
#  278|   
#  279|     app = g_object_new (ICON_EDITOR_APPLICATION_TYPE,

Error: GCC_ANALYZER_WARNING (CWE-674): [#def7]
gtk-4.22.1/demos/icon-editor/path-paintable.c:993:19: warning[-Wanalyzer-infinite-recursion]: infinite recursion
gtk-4.22.1/demos/icon-editor/path-paintable.c:984:1: enter_function: entry to ‘shape_get_max_state’
gtk-4.22.1/demos/icon-editor/path-paintable.c:986:6: branch_true: following ‘true’ branch...
gtk-4.22.1/demos/icon-editor/path-paintable.c:986:6: branch_true: ...to here
gtk-4.22.1/demos/icon-editor/path-paintable.c:990:32: branch_true: following ‘true’ branch...
gtk-4.22.1/demos/icon-editor/path-paintable.c:992:23: branch_true: ...to here
gtk-4.22.1/demos/icon-editor/path-paintable.c:993:19: branch_true: following ‘true’ branch...
gtk-4.22.1/demos/icon-editor/path-paintable.c:993:19: branch_true: ...to here
gtk-4.22.1/demos/icon-editor/path-paintable.c:993:19: call_function: calling ‘shape_get_max_state’ from ‘shape_get_max_state’
#  991|           {
#  992|             Shape *sh = g_ptr_array_index (shape->shapes, i);
#  993|->           state = MAX (state, shape_get_max_state (sh));
#  994|           }
#  995|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def8]
gtk-4.22.1/demos/icon-editor/state-editor.c:121:15: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gtk-4.22.1/demos/icon-editor/state-editor.c:253:1: enter_function: entry to ‘state_name_changed’
gtk-4.22.1/demos/icon-editor/state-editor.c:262:6: branch_false: following ‘false’ branch...
gtk-4.22.1/demos/icon-editor/state-editor.c:265:3: branch_false: ...to here
gtk-4.22.1/demos/icon-editor/state-editor.c:265:3: call_function: calling ‘update_state_names’ from ‘state_name_changed’
#  119|             char num[64];
#  120|             g_snprintf (num, sizeof (num), "%u", i);
#  121|->           if (strcmp (num, text) == 0)
#  122|               {
#  123|                 names[i] = NULL;

Error: COMPILER_WARNING (CWE-670): [#def9]
gtk-4.22.1/demos/node-editor/node-editor-application.c: scope_hint: In function ‘activate_about’
gtk-4.22.1/demos/node-editor/node-editor-application.c:106:74: warning[-Wduplicated-branches]: this condition has identical branches
#  106 |                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#      |                                                                          ^
#  104|                                PACKAGE_VERSION,
#  105|                                g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#  106|->                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#  107|                                gtk_get_major_version (),
#  108|                                gtk_get_minor_version (),

Error: COMPILER_WARNING (CWE-670): [#def10]
gtk-4.22.1/demos/node-editor/node-editor-application.c: scope_hint: In function ‘node_editor_application_new’
gtk-4.22.1/demos/node-editor/node-editor-application.c:311:59: warning[-Wduplicated-branches]: this condition has identical branches
#  311 |               g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
#      |                                                           ^
#  309|                 PACKAGE_VERSION,
#  310|                 g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#  311|->               g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
#  312|   
#  313|     app = g_object_new (NODE_EDITOR_APPLICATION_TYPE,

Error: COMPILER_WARNING (CWE-670): [#def11]
gtk-4.22.1/demos/print-editor/print-editor.c: scope_hint: In function ‘activate_about’
gtk-4.22.1/demos/print-editor/print-editor.c:614:74: warning[-Wduplicated-branches]: this condition has identical branches
#  614 |                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#      |                                                                          ^
#  612|                                PACKAGE_VERSION,
#  613|                                g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#  614|->                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#  615|                                gtk_get_major_version (),
#  616|                                gtk_get_minor_version (),

Error: COMPILER_WARNING (CWE-670): [#def12]
gtk-4.22.1/demos/print-editor/print-editor.c: scope_hint: In function ‘main’
gtk-4.22.1/demos/print-editor/print-editor.c:903:59: warning[-Wduplicated-branches]: this condition has identical branches
#  903 |               g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
#      |                                                           ^
#  901|                 PACKAGE_VERSION,
#  902|                 g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#  903|->               g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
#  904|   
#  905|     g_application_set_version (G_APPLICATION (app), version);

Error: COMPILER_WARNING (CWE-670): [#def13]
gtk-4.22.1/demos/widget-factory/widget-factory.c: scope_hint: In function ‘activate_about’
gtk-4.22.1/demos/widget-factory/widget-factory.c:344:74: warning[-Wduplicated-branches]: this condition has identical branches
#  344 |                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#      |                                                                          ^
#  342|                                PACKAGE_VERSION,
#  343|                                g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#  344|->                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#  345|                                gtk_get_major_version (),
#  346|                                gtk_get_minor_version (),

Error: COMPILER_WARNING (CWE-670): [#def14]
gtk-4.22.1/demos/widget-factory/widget-factory.c: scope_hint: In function ‘main’
gtk-4.22.1/demos/widget-factory/widget-factory.c:2727:59: warning[-Wduplicated-branches]: this condition has identical branches
# 2727 |               g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
#      |                                                           ^
# 2725|                 PACKAGE_VERSION,
# 2726|                 g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
# 2727|->               g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
# 2728|     g_application_set_version (G_APPLICATION (app), version);
# 2729|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
gtk-4.22.1/gdk/gdkdisplay.c:708:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-4.22.1/gdk/gdkdisplay.c:701:6: branch_true: following ‘true’ branch (when ‘grab’ is non-NULL)...
gtk-4.22.1/gdk/gdkdisplay.c:704:11: branch_true: ...to here
gtk-4.22.1/gdk/gdkdisplay.c:704:10: branch_true: following ‘true’ branch...
gtk-4.22.1/gdk/gdkdisplay.c:708:15: branch_true: ...to here
gtk-4.22.1/gdk/gdkdisplay.c:708:14: branch_true: following ‘true’ branch...
gtk-4.22.1/gdk/gdkdisplay.c:708:38: branch_true: ...to here
gtk-4.22.1/gdk/gdkdisplay.c:708:38: danger: dereference of NULL ‘_gdk_display_get_pointer_info(display,  device)’
#  706|   	  /* !owner_event Grabbing a surface that we're not inside, current status is
#  707|   	     now NULL (i.e. outside grabbed surface) */
#  708|-> 	  if (!grab->owner_events && info->surface_under_pointer != grab->surface)
#  709|   	    _gdk_display_set_surface_under_pointer (display, device, NULL);
#  710|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
gtk-4.22.1/gdk/gdkdisplay.c:728:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-4.22.1/gdk/gdkdisplay.c:683:1: enter_function: entry to ‘switch_to_pointer_grab’
gtk-4.22.1/gdk/gdkdisplay.c:715:6: branch_true: following ‘true’ branch (when ‘last_grab’ is non-NULL)...
gtk-4.22.1/gdk/gdkdisplay.c:719:10: branch_true: ...to here
gtk-4.22.1/gdk/gdkdisplay.c:719:10: branch_true: following ‘true’ branch (when ‘grab’ is NULL)...
gtk-4.22.1/gdk/gdkdisplay.c:722:26: branch_true: ...to here
gtk-4.22.1/gdk/gdkdisplay.c:722:26: call_function: calling ‘get_current_toplevel’ from ‘switch_to_pointer_grab’
gtk-4.22.1/gdk/gdkdisplay.c:722:26: return_function: returning to ‘switch_to_pointer_grab’ from ‘get_current_toplevel’
gtk-4.22.1/gdk/gdkdisplay.c:724:14: branch_true: following ‘true’ branch...
gtk-4.22.1/gdk/gdkdisplay.c:727:15: branch_true: ...to here
gtk-4.22.1/gdk/gdkdisplay.c:728:15: danger: dereference of NULL ‘_gdk_display_get_pointer_info(display,  device)’
#  726|   	      /* w is now toplevel and x,y in toplevel coords */
#  727|                 _gdk_display_set_surface_under_pointer (display, device, new_toplevel);
#  728|-> 	      info->toplevel_x = x;
#  729|   	      info->toplevel_y = y;
#  730|   	      info->state = state;

Error: COMPILER_WARNING (CWE-476): [#def17]
gtk-4.22.1/gtk/gtkbuilderparser.c:2187:28: warning[-Wnull-dereference]: potential null pointer dereference
# 2187 |       if (!strcmp (req_info->library, "gtk"))
#      |                    ~~~~~~~~^~~~~~~~~
# 2185|          * to check their library versions here.
# 2186|          */
# 2187|->       if (!strcmp (req_info->library, "gtk"))
# 2188|           {
# 2189|             if (req_info->major == 4 && req_info->minor == 0)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def18]
gtk-4.22.1/gtk/gtkcssfiltervalue.c:471:43: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*filter2.svg.ref’
gtk-4.22.1/gtk/gtkcssfiltervalue.c:481:1: enter_function: entry to ‘gtk_css_value_filter_equal’
gtk-4.22.1/gtk/gtkcssfiltervalue.c:496:10: branch_true: following ‘true’ branch...
gtk-4.22.1/gtk/gtkcssfiltervalue.c:500:7: branch_true: ...to here
gtk-4.22.1/gtk/gtkcssfiltervalue.c:502:12: call_function: calling ‘gtk_css_filter_equal’ from ‘gtk_css_value_filter_equal’
#  469|       case GTK_CSS_FILTER_SVG:
#  470|         return g_strcmp0 (filter1->svg.url, filter2->svg.url) == 0 &&
#  471|->              g_strcmp0 (filter1->svg.ref, filter2->svg.ref) == 0;
#  472|   
#  473|       case GTK_CSS_FILTER_NONE:

Error: COMPILER_WARNING: [#def19]
gtk-4.22.1/gtk/gtkpango.c: scope_hint: In function ‘attribute_from_text’
gtk-4.22.1/gtk/gtkpango.c:81:3: warning[-Wswitch-enum]: enumeration value ‘PANGO_ATTR_WIDTH’ not handled in switch
#   81 |   switch (type)
#      |   ^~~~~~
#   79|     g_value_unset (&val);
#   80|   
#   81|->   switch (type)
#   82|       {
#   83|         /* PangoAttrLanguage */

Error: COMPILER_WARNING (CWE-476): [#def20]
gtk-4.22.1/gtk/gtksvg.c:354:17: warning[-Wnull-dereference]: potential null pointer dereference
#  354 |   dest->element = g_strdup (src->element);
#  352|     g_assert (dest != NULL);
#  353|     g_assert (src != NULL);
#  354|->   dest->element = g_strdup (src->element);
#  355|     dest->attribute = g_strdup (src->attribute);
#  356|     dest->start = src->start;

Error: COMPILER_WARNING (CWE-476): [#def21]
gtk-4.22.1/gtk/gtksvg.c:355:19: warning[-Wnull-dereference]: potential null pointer dereference
#  355 |   dest->attribute = g_strdup (src->attribute);
#  353|     g_assert (src != NULL);
#  354|     dest->element = g_strdup (src->element);
#  355|->   dest->attribute = g_strdup (src->attribute);
#  356|     dest->start = src->start;
#  357|     dest->end = src->end;

Error: COMPILER_WARNING (CWE-476): [#def22]
gtk-4.22.1/gtk/gtksvg.c:356:15: warning[-Wnull-dereference]: potential null pointer dereference
#  356 |   dest->start = src->start;
#      |   ~~~~~~~~~~~~^~~~~~~~~~~~
#  354|     dest->element = g_strdup (src->element);
#  355|     dest->attribute = g_strdup (src->attribute);
#  356|->   dest->start = src->start;
#  357|     dest->end = src->end;
#  358|   }

Error: COMPILER_WARNING (CWE-476): [#def23]
gtk-4.22.1/gtk/gtksvg.c:357:13: warning[-Wnull-dereference]: potential null pointer dereference
#  357 |   dest->end = src->end;
#      |   ~~~~~~~~~~^~~~~~~~~~
#  355|     dest->attribute = g_strdup (src->attribute);
#  356|     dest->start = src->start;
#  357|->   dest->end = src->end;
#  358|   }
#  359|   

Error: COMPILER_WARNING (CWE-476): [#def24]
gtk-4.22.1/gtk/gtksvg.c:364:15: warning[-Wnull-dereference]: potential null pointer dereference
#  364 |   g_free (priv->element);
#  362|   {
#  363|     g_assert (priv != NULL);
#  364|->   g_free (priv->element);
#  365|     g_free (priv->attribute);
#  366|   }

Error: COMPILER_WARNING (CWE-476): [#def25]
gtk-4.22.1/gtk/gtksvg.c:365:15: warning[-Wnull-dereference]: potential null pointer dereference
#  365 |   g_free (priv->attribute);
#  363|     g_assert (priv != NULL);
#  364|     g_free (priv->element);
#  365|->   g_free (priv->attribute);
#  366|   }
#  367|   

Error: COMPILER_WARNING (CWE-476): [#def26]
gtk-4.22.1/gtk/gtksvg.c: scope_hint: In function ‘gtk_svg_error_set_element’
gtk-4.22.1/gtk/gtksvg.c:376:17: warning[-Wnull-dereference]: potential null pointer dereference
#  376 |   priv->element = g_strdup (element);
#  374|     GtkSvgErrorPrivate *priv = gtk_svg_error_get_private (error);
#  375|     g_assert (error->domain == GTK_SVG_ERROR);
#  376|->   priv->element = g_strdup (element);
#  377|   }
#  378|   

Error: COMPILER_WARNING (CWE-476): [#def27]
gtk-4.22.1/gtk/gtksvg.c: scope_hint: In function ‘gtk_svg_error_set_attribute’
gtk-4.22.1/gtk/gtksvg.c:385:19: warning[-Wnull-dereference]: potential null pointer dereference
#  385 |   priv->attribute = g_strdup (attribute);
#  383|     GtkSvgErrorPrivate *priv = gtk_svg_error_get_private (error);
#  384|     g_assert (error->domain == GTK_SVG_ERROR);
#  385|->   priv->attribute = g_strdup (attribute);
#  386|   }
#  387|   

Error: COMPILER_WARNING (CWE-476): [#def28]
gtk-4.22.1/gtk/gtksvg.c:396:17: warning[-Wnull-dereference]: potential null pointer dereference
#  396 |     priv->start = *start;
#      |     ~~~~~~~~~~~~^~~~~~~~
#  394|     g_assert (error->domain == GTK_SVG_ERROR);
#  395|     if (start)
#  396|->     priv->start = *start;
#  397|     if (end)
#  398|       priv->end = *end;

Error: COMPILER_WARNING (CWE-476): [#def29]
gtk-4.22.1/gtk/gtksvg.c:398:15: warning[-Wnull-dereference]: potential null pointer dereference
#  398 |     priv->end = *end;
#      |     ~~~~~~~~~~^~~~~~
#  396|       priv->start = *start;
#  397|     if (end)
#  398|->     priv->end = *end;
#  399|   }
#  400|   

Error: CPPCHECK_WARNING (CWE-664): [#def30]
gtk-4.22.1/gtk/gtksvg.c:801: error[va_end_missing]: va_list 'args' was opened but not closed by va_end().
#  799|   
#  800|         if (list == NULL)
#  801|->         return FALSE;
#  802|   
#  803|         if (strcmp (name, (const char *) list->data) != 0)

Error: CPPCHECK_WARNING (CWE-119): [#def31]
gtk-4.22.1/gtk/gtksvg.c:3874: error[bufferAccessOutOfBounds]: Buffer is accessed out of bounds: orig->values
# 3872|   
# 3873|         p = (SvgNumbers *) svg_value_alloc (&SVG_NUMBERS_CLASS, svg_numbers_size (2));
# 3874|->       memcpy (p->values, orig->values, sizeof (Number) * 2);
# 3875|   
# 3876|         font_size = shape_get_current_font_size (shape, attr, context);

Error: CPPCHECK_WARNING (CWE-119): [#def32]
gtk-4.22.1/gtk/gtksvg.c:3874: error[bufferAccessOutOfBounds]: Buffer is accessed out of bounds: p->values
# 3872|   
# 3873|         p = (SvgNumbers *) svg_value_alloc (&SVG_NUMBERS_CLASS, svg_numbers_size (2));
# 3874|->       memcpy (p->values, orig->values, sizeof (Number) * 2);
# 3875|   
# 3876|         font_size = shape_get_current_font_size (shape, attr, context);

Error: CPPCHECK_WARNING (CWE-823): [#def33]
gtk-4.22.1/gtk/gtksvg.c:7826: error[arrayIndexOutOfBounds]: Array 'a->dashes[2]' accessed at index 3, which is out of bounds.
# 7824|         for (unsigned int i = 0; i < n; i++)
# 7825|           {
# 7826|->           a->dashes[i].unit = SVG_UNIT_NUMBER;
# 7827|             a->dashes[i].value = values[i];
# 7828|           }

Error: CPPCHECK_WARNING (CWE-823): [#def34]
gtk-4.22.1/gtk/gtksvg.c:7827: error[arrayIndexOutOfBounds]: Array 'a->dashes[2]' accessed at index 3, which is out of bounds.
# 7825|           {
# 7826|             a->dashes[i].unit = SVG_UNIT_NUMBER;
# 7827|->           a->dashes[i].value = values[i];
# 7828|           }
# 7829|   

Error: CPPCHECK_WARNING (CWE-758): [#def35]
gtk-4.22.1/gtk/gtksvg.c:12155: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
#12153|       case SHAPE_SWITCH:
#12154|         g_error ("Attempt to get the path of a %s", shape_types[shape->type].name);
#12155|->       break;
#12156|       default:
#12157|         g_assert_not_reached ();

Error: CPPCHECK_WARNING (CWE-457): [#def36]
gtk-4.22.1/gtk/gtksvg.c:16087: error[legacyUninitvar]: Uninitialized variable: direction
#16085|     frames = g_array_new (FALSE, FALSE, sizeof (Frame));
#16086|   
#16087|->   construct_moving_frames (direction,
#16088|                              da->gpa.easing,
#16089|                              da->gpa.segment,

Error: CPPCHECK_WARNING (CWE-457): [#def37]
gtk-4.22.1/gtk/gtksvg.c:16752: warning[uninitvar]: Uninitialized variable: length
#16750|   
#16751|             for (unsigned int i = 1; i < points->len; i++)
#16752|->             g_array_index (points, double, i) /= length;
#16753|   
#16754|             a->motion.path = gsk_path_builder_free_to_path (builder);

Error: CPPCHECK_WARNING (CWE-457): [#def38]
gtk-4.22.1/gtk/gtksvg.c:20678: error[legacyUninitvar]: Uninitialized variable: res
#20676|               g_assert_not_reached ();
#20677|   
#20678|->           if (res)
#20679|               {
#20680|                 if (i == 0)

Error: COMPILER_WARNING: [#def39]
gtk-4.22.1/gtk/gtktextbuffer.c: scope_hint: In function ‘insert_tags_for_attributes’
gtk-4.22.1/gtk/gtktextbuffer.c:4745:7: warning[-Wswitch-enum]: enumeration value ‘PANGO_ATTR_WIDTH’ not handled in switch
# 4745 |       switch (attr->klass->type)
#      |       ^~~~~~
# 4743|         PangoAttribute *attr = l->data;
# 4744|   
# 4745|->       switch (attr->klass->type)
# 4746|           {
# 4747|           case PANGO_ATTR_LANGUAGE:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
gtk-4.22.1/gtk/print/gtkprinteroptionwidget.c:612:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-4.22.1/gtk/print/gtkprinteroptionwidget.c:642:1: enter_function: entry to ‘handle_combo_entry_change’
gtk-4.22.1/gtk/print/gtkprinteroptionwidget.c:652:11: call_function: calling ‘combo_box_get’ from ‘handle_combo_entry_change’
gtk-4.22.1/gtk/print/gtkprinteroptionwidget.c:652:11: return_function: returning to ‘handle_combo_entry_change’ from ‘combo_box_get’
gtk-4.22.1/gtk/print/gtkprinteroptionwidget.c:655:6: branch_true: following ‘true’ branch...
gtk-4.22.1/gtk/print/gtkprinteroptionwidget.c:657:15: branch_true: ...to here
gtk-4.22.1/gtk/print/gtkprinteroptionwidget.c:660:26: call_function: calling ‘filter_numeric’ from ‘handle_combo_entry_change’
#  610|     for (i = 0, j = 0; i < len; i++)
#  611|       {
#  612|->       if (isdigit (val[i]))
#  613|           {
#  614|             filtered_val[j] = val[i];

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
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-100.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.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namegtk4-4.23.2-2.fc45
diffbase-store-results-to/tmp/tmpf_3tuhfq/gtk4-4.23.2-2.fc45.tar.xz
diffbase-time-created2026-08-03 15:20:06
diffbase-time-finished2026-08-03 15:47:33
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpf_3tuhfq/gtk4-4.23.2-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpf_3tuhfq/gtk4-4.23.2-2.fc45.src.rpm'
diffbase-tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-100.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namegtk4-4.22.1-2.fc44
store-results-to/tmp/tmpjk5l566c/gtk4-4.22.1-2.fc44.tar.xz
time-created2026-08-03 14:54:01
time-finished2026-08-03 15:19:31
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpjk5l566c/gtk4-4.22.1-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpjk5l566c/gtk4-4.22.1-2.fc44.src.rpm'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9