Newly introduced defects

List of Defects

Error: CPPCHECK_WARNING: [#def1]
gtk4-4.15.3-build/gtk-4.15.3/gdk/wayland/gdkdmabuf-wayland.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskrendererprivate.h:23: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskrenderer.c:36: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskrenderer.c: scope_hint: In function ‘gsk_renderer_new_for_surface’
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskdebugprivate.h:43:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskrenderer.c:791:7: note: in expansion of macro ‘GSK_DEBUG’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gdk/gdktypes.h:33: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gdk/gdkapplaunchcontext.h:27: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gdk/gdk.h:29: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gsk/gsktypes.h:25: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskrenderer.h:25: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskrendererprivate.h:21: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskrenderer.c:772:3: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
gtk4-4.15.3-build/gtk-4.15.3/gdk/gdksurface.h:44:40: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskrenderer.c:772:25: note: in expansion of macro ‘GDK_IS_SURFACE’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskrenderer.c:772:3: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
gtk4-4.15.3-build/gtk-4.15.3/gdk/gdksurface.h:44:40: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskrenderer.c:772:25: note: in expansion of macro ‘GDK_IS_SURFACE’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskdebugprivate.h:30:41: note: in expansion of macro ‘G_UNLIKELY’
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskdebugprivate.h:42:9: note: in expansion of macro ‘GSK_DEBUG_CHECK’
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskrenderer.c:791:7: note: in expansion of macro ‘GSK_DEBUG’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskdebugprivate.h:30:41: note: in expansion of macro ‘G_UNLIKELY’
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskdebugprivate.h:42:9: note: in expansion of macro ‘GSK_DEBUG_CHECK’
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskrenderer.c:791:7: note: in expansion of macro ‘GSK_DEBUG’
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskdebugprivate.h:43:26: note: in definition of macro ‘GSK_DEBUG’
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskdebugprivate.h:43:26: note: in definition of macro ‘GSK_DEBUG’
gtk4-4.15.3-build/gtk-4.15.3/gsk/gskrenderer.c:791:7: note: in expansion of macro ‘GSK_DEBUG’
#   41|       G_STMT_START {                                                          \
#   42|       if (GSK_DEBUG_CHECK (type))                                             \
#   43|->       gdk_debug_message (__VA_ARGS__);                                      \
#   44|       } G_STMT_END
#   45|   

Error: CPPCHECK_WARNING: [#def3]
gtk4-4.15.3-build/gtk-4.15.3/gtk/a11y/gtkatspiutils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
gtk4-4.15.3-build/gtk-4.15.3/gtk/css/gtkcsssection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcssanimation.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsscalcvalue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def7]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsscolor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def8]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsscolorvalue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def9]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcssimagefallback.c:357:56: warning[core.NullDereference]: Array access (via field 'images') results in a null pointer dereference
#  355|         for (i = 0; i < fallback->n_images; i++)
#  356|           {
#  357|->           resolved->images[i] = gtk_css_image_resolve (fallback->images[i], context, current_color);
#  358|   
#  359|             if (gtk_css_image_is_invalid (resolved->images[i]))

Error: CPPCHECK_WARNING: [#def10]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcssimageicontheme.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def11]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsskeyframes.c:577:33: warning[core.NullDereference]: Array access (from variable 'sorted_variable_ids') results in a null pointer dereference
#  575|             for (p = 0; p < keyframes->n_variables; p++)
#  576|               {
#  577|->               int variable_id = sorted_variable_ids[p];
#  578|                 GtkCssVariableValue *value =
#  579|                   gtk_css_variable_set_lookup (keyframes->variables[k], variable_id, NULL);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsskeyframes.c: scope_hint: In function ‘_gtk_css_keyframes_print’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsskeyframes.c:577:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sorted_variable_ids’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gtk/css/gtkcss.h:29: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsskeyframesprivate.h:22: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsskeyframes.c:20: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsskeyframes.c:524:3: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsskeyframes.c:525:3: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsskeyframes.c:525:3: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
/usr/include/glib-2.0/glib/gmem.h:261:32: note: in definition of macro ‘_G_NEW’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsskeyframes.c:527:12: note: in expansion of macro ‘g_new’
#  575|             for (p = 0; p < keyframes->n_variables; p++)
#  576|               {
#  577|->               int variable_id = sorted_variable_ids[p];
#  578|                 GtkCssVariableValue *value =
#  579|                   gtk_css_variable_set_lookup (keyframes->variables[k], variable_id, NULL);

Error: CPPCHECK_WARNING: [#def13]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcssnumbervalue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def14]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcssnumbervalue.c:975:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'values'
#  973|             }
#  974|   
#  975|->         return gtk_css_math_value_new (type, 0, values, value->calc.n_terms);
#  976|         }
#  977|   

Error: CLANG_WARNING: [#def15]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcssprovider.c:550:43: warning[core.NullDereference]: Dereference of null pointer
#  548|             for (j = 0; j < ruleset->n_styles; j++)
#  549|               {
#  550|->               GtkCssStyleProperty *prop = ruleset->styles[j].property;
#  551|                 guint id = _gtk_css_style_property_get_id (prop);
#  552|   

Error: CPPCHECK_WARNING: [#def16]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcssreferencevalue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def17]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcssreferencevalue.c:158: error[legacyUninitvar]: Uninitialized variable: var_length
#  156|           }
#  157|   
#  158|->       length += var_length - ref->length;
#  159|         n_refs += var_refs;
#  160|   

Error: CPPCHECK_WARNING (CWE-457): [#def18]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcssreferencevalue.c:159: error[legacyUninitvar]: Uninitialized variable: var_refs
#  157|   
#  158|         length += var_length - ref->length;
#  159|->       n_refs += var_refs;
#  160|   
#  161|         if (length > MAX_TOKEN_LENGTH)

Error: CLANG_WARNING: [#def19]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsspalettevalue.c:20: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsspalettevalueprivate.h:25: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcssvalueprivate.h:114:25: warning[core.NullDereference]: Access to field 'ref_count' results in a dereference of a null pointer (loaded from variable 'value_base')
#  112|     GtkCssValueBase *value_base = (GtkCssValueBase *) value;
#  113|   
#  114|->   value_base->ref_count += 1;
#  115|   
#  116|     return value;

Error: CLANG_WARNING: [#def20]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsspositionvalue.c:20: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsspositionvalueprivate.h:25: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcssvalueprivate.h:141:10: warning[core.NullDereference]: Access to field 'is_computed' results in a dereference of a null pointer (loaded from variable 'value_base')
#  139|     GtkCssValueBase *value_base = (GtkCssValueBase *) value;
#  140|   
#  141|->   return value_base->is_computed;
#  142|   }
#  143|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcssvalueprivate.h:141:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘x’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsspositionvalue.c: scope_hint: In function ‘_gtk_css_position_value_new’
#  139|     GtkCssValueBase *value_base = (GtkCssValueBase *) value;
#  140|   
#  141|->   return value_base->is_computed;
#  142|   }
#  143|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcssvalueprivate.h:141:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘y’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcsspositionvalue.c: scope_hint: In function ‘_gtk_css_position_value_new’
#  139|     GtkCssValueBase *value_base = (GtkCssValueBase *) value;
#  140|   
#  141|->   return value_base->is_computed;
#  142|   }
#  143|   

Error: CPPCHECK_WARNING: [#def23]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkcssvariableset.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-126): [#def24]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkglarea.c: scope_hint: In function ‘release_dmabuf’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkglarea.c:735:29: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gdk/gdktypes.h:33: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gdk/gdkapplaunchcontext.h:27: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gdk/gdk.h:29: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkwidget.h:31: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkglarea.h:27: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkglarea.c:24: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkglarea.c:1569:3: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkglarea.h:33:42: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkglarea.c:1569:21: note: in expansion of macro ‘GTK_IS_GL_AREA’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkglarea.c:1569:3: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkglarea.h:33:42: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkglarea.c:1569:21: note: in expansion of macro ‘GTK_IS_GL_AREA’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkglarea.c:577:3: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkglarea.h:33:42: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkglarea.c:577:21: note: in expansion of macro ‘GTK_IS_GL_AREA’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkglarea.c:577:3: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkglarea.h:33:42: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkglarea.c:577:21: note: in expansion of macro ‘GTK_IS_GL_AREA’
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtkglarea.c:735:29: note: read of 4 bytes from after the end of ‘dmabuf’
#                                                 └───────────────────────┘
#                                                             ^
#  733|   #ifndef G_OS_WIN32
#  734|     for (unsigned int i = 0; i < dmabuf->n_planes; i++)
#  735|->     close (dmabuf->planes[i].fd);
#  736|   #endif
#  737|   }

Error: CPPCHECK_WARNING (CWE-457): [#def25]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtklabel.c:2176: error[legacyUninitvar]: Uninitialized variable: success
# 2174|       g_assert_not_reached ();
# 2175|   
# 2176|->   if (!success)
# 2177|       {
# 2178|         g_warning ("Failed to launch handler: %s", error->message);

Error: CPPCHECK_WARNING (CWE-457): [#def26]
gtk4-4.15.3-build/gtk-4.15.3/gtk/gtklinkbutton.c:511: error[legacyUninitvar]: Uninitialized variable: success
#  509|       g_assert_not_reached ();
#  510|   
#  511|->   if (!success)
#  512|       {
#  513|         g_warning ("Failed to launch handler: %s", error->message);

Error: CPPCHECK_WARNING: [#def27]
gtk4-4.15.3-build/gtk-4.15.3/gtk/inspector/css-node-tree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-823): [#def28]
gtk4-4.15.3-build/gtk-4.15.3/gtk/inspector/subsurfaceoverlay.c:52: error[arrayIndexOutOfBounds]: Array '"DAA520"[7]' accessed at index 7, which is out of bounds.
#   50|   
#   51|         if (gdk_subsurface_is_above_parent (subsurface))
#   52|->         color = GDK_RGBA ("DAA520"); /* goldenrod */
#   53|         else
#   54|           color = GDK_RGBA ("FF00FF"); /* magenta */

Error: CPPCHECK_WARNING (CWE-823): [#def29]
gtk4-4.15.3-build/gtk-4.15.3/gtk/inspector/subsurfaceoverlay.c:54: error[arrayIndexOutOfBounds]: Array '"FF00FF"[7]' accessed at index 7, which is out of bounds.
#   52|           color = GDK_RGBA ("DAA520"); /* goldenrod */
#   53|         else
#   54|->         color = GDK_RGBA ("FF00FF"); /* magenta */
#   55|   
#   56|         /* Use 4 color nodes since a border node overlaps and prevents

Error: CPPCHECK_WARNING: [#def30]
gtk4-4.15.3-build/gtk-4.15.3/modules/media/gtkgstsink.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def31]
gtk4-4.15.3-build/gtk-4.15.3/modules/printbackends/gtkprintbackendcups.c: scope_hint: In function ‘cups_printer_get_options’
gtk4-4.15.3-build/gtk-4.15.3/modules/printbackends/gtkprintbackendcups.c:5800:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gtk4-4.15.3-build/gtk-4.15.3/modules/printbackends/gtkprintbackendcups.c:44: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n-lib.h:32:59: note: in definition of macro ‘_’
/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.
/usr/include/glib-2.0/glib/gprintf.h:23: included_from: Included from here.
/usr/include/glib-2.0/glib/gstdio.h:24: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/modules/printbackends/gtkprintbackendcups.c:43: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
gtk4-4.15.3-build/gtk-4.15.3/modules/printbackends/gtkprintbackendcups.c:5797:22: note: in expansion of macro ‘g_strdup’
gtk4-4.15.3-build/gtk-4.15.3/modules/printbackends/gtkprintbackendcups.c: scope_hint: In function ‘cups_printer_get_options’
/usr/include/cups/http.h:21: included_from: Included from here.
/usr/include/cups/ipp.h:19: included_from: Included from here.
/usr/include/cups/cups.h:28: included_from: Included from here.
gtk4-4.15.3-build/gtk-4.15.3/modules/printbackends/gtkprintbackendcups.c:34: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
# 5798|             value = NULL;
# 5799|             for (j = 0; j < G_N_ELEMENTS (cover_default); j++)
# 5800|->             if (strcmp (cover_default[j], cover[i]) == 0)
# 5801|                 {
# 5802|                   value = cover_display_default[j];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
gtk4-4.15.3-build/gtk-4.15.3/tools/gtk-rendernode-tool-render.c:196:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
gtk4-4.15.3-build/gtk-4.15.3/tools/gtk-rendernode-tool-render.c:191:7: note: in expansion of macro ‘g_str_has_suffix’
#  194|         if (bytes == NULL)
#  195|           {
#  196|->           g_printerr (_("Failed to generate SVG: %s\n"), error->message);
#  197|             exit (1);
#  198|           }

Error: CLANG_WARNING: [#def33]
gtk4-4.15.3-build/gtk-4.15.3/tools/gtk-rendernode-tool-render.c:196:58: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
#  194|         if (bytes == NULL)
#  195|           {
#  196|->           g_printerr (_("Failed to generate SVG: %s\n"), error->message);
#  197|             exit (1);
#  198|           }

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-28.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namegtk4-4.14.2-2.fc40
diffbase-store-results-to/tmp/tmp3rgiokoz/gtk4-4.14.2-2.fc40.tar.xz
diffbase-time-created2024-07-03 13:08:06
diffbase-time-finished2024-07-03 13:55:33
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp3rgiokoz/gtk4-4.14.2-2.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp3rgiokoz/gtk4-4.14.2-2.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-28.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegtk4-4.15.3-1.fc41
store-results-to/tmp/tmpvko7xknb/gtk4-4.15.3-1.fc41.tar.xz
time-created2024-07-03 13:56:09
time-finished2024-07-03 14:22:53
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpvko7xknb/gtk4-4.15.3-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpvko7xknb/gtk4-4.15.3-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9