Task #52334 - gtk3-3.24.49-2.fc42/scan-results.err
back to task #52334download
Error: SHELLCHECK_WARNING (CWE-156):
/usr/libexec/installed-tests/gtk+/test-settings:13:6: warning[SC2046]: Quote this to prevent word splitting.
# 11| result=$TEST_RESULT_DIR/$name.out
# 12| $GTK_QUERY_SETTINGS 2>/dev/null >$result
# 13|-> if [ $(wc -l $result | cut -f1 -d' ') -eq 84 ]; then
# 14| echo "ok 1 $name"
# 15| else
Error: SHELLCHECK_WARNING (CWE-569):
/usr/libexec/installed-tests/gtk+/test-simplify:13:10: warning[SC2048]: Use "${array[@]}" (with quotes) to prevent whitespace problems.
# 11|
# 12| I=1
# 13|-> for t in ${TESTS[*]}; do
# 14| name=$(basename $t .ui)
# 15| expected="$TEST_DATA_DIR/$name.expected"
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/docs/tools/shooter.c: scope_hint: In function ‘take_window_shot’
gtk-3.24.49/docs/tools/shooter.c:173:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_width’ is deprecated
# 173 | if (x_orig + width > gdk_screen_width ())
# | ^~
gtk-3.24.49/gdk/gdk.h:50: included_from: Included from here.
gtk-3.24.49/docs/tools/shooter.c:1: included_from: Included from here.
gtk-3.24.49/gdk/gdkmain.h:108:6: note: declared here
# 108 | gint gdk_screen_width (void) G_GNUC_CONST;
# | ^~~~~~~~~~~~~~~~
# 171| }
# 172|
# 173|-> if (x_orig + width > gdk_screen_width ())
# 174| width = gdk_screen_width () - x_orig;
# 175|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/docs/tools/shooter.c:174:5: warning[-Wdeprecated-declarations]: ‘gdk_screen_width’ is deprecated
# 174 | width = gdk_screen_width () - x_orig;
# | ^~~~~
gtk-3.24.49/gdk/gdkmain.h:108:6: note: declared here
# 108 | gint gdk_screen_width (void) G_GNUC_CONST;
# | ^~~~~~~~~~~~~~~~
# 172|
# 173| if (x_orig + width > gdk_screen_width ())
# 174|-> width = gdk_screen_width () - x_orig;
# 175|
# 176| if (y_orig + height > gdk_screen_height ())
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/docs/tools/shooter.c:176:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_height’ is deprecated
# 176 | if (y_orig + height > gdk_screen_height ())
# | ^~
gtk-3.24.49/gdk/gdkmain.h:110:6: note: declared here
# 110 | gint gdk_screen_height (void) G_GNUC_CONST;
# | ^~~~~~~~~~~~~~~~~
# 174| width = gdk_screen_width () - x_orig;
# 175|
# 176|-> if (y_orig + height > gdk_screen_height ())
# 177| height = gdk_screen_height () - y_orig;
# 178|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/docs/tools/shooter.c:177:5: warning[-Wdeprecated-declarations]: ‘gdk_screen_height’ is deprecated
# 177 | height = gdk_screen_height () - y_orig;
# | ^~~~~~
gtk-3.24.49/gdk/gdkmain.h:110:6: note: declared here
# 110 | gint gdk_screen_height (void) G_GNUC_CONST;
# | ^~~~~~~~~~~~~~~~~
# 175|
# 176| if (y_orig + height > gdk_screen_height ())
# 177|-> height = gdk_screen_height () - y_orig;
# 178|
# 179| tmp = gdk_pixbuf_get_from_window (window,
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/gdk/broadway/gdkscreen-broadway.c: scope_hint: In function ‘gdk_broadway_screen_get_width_mm’
gtk-3.24.49/gdk/broadway/gdkscreen-broadway.c:68:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 68 | return gdk_screen_get_width (screen) * 25.4 / 96;
# | ^~~~~~
gtk-3.24.49/gdk/gdkscreenprivate.h:21: included_from: Included from here.
gtk-3.24.49/gdk/broadway/gdkscreen-broadway.h:25: included_from: Included from here.
gtk-3.24.49/gdk/broadway/gdkscreen-broadway.c:24: included_from: Included from here.
gtk-3.24.49/gdk/gdkscreen.h:58:14: note: declared here
# 58 | gint gdk_screen_get_width (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~
# 66| gdk_broadway_screen_get_width_mm (GdkScreen *screen)
# 67| {
# 68|-> return gdk_screen_get_width (screen) * 25.4 / 96;
# 69| }
# 70|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/gdk/broadway/gdkscreen-broadway.c: scope_hint: In function ‘gdk_broadway_screen_get_height_mm’
gtk-3.24.49/gdk/broadway/gdkscreen-broadway.c:74:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 74 | return gdk_screen_get_height (screen) * 25.4 / 96;
# | ^~~~~~
gtk-3.24.49/gdk/gdkscreen.h:60:14: note: declared here
# 60 | gint gdk_screen_get_height (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~~
# 72| gdk_broadway_screen_get_height_mm (GdkScreen *screen)
# 73| {
# 74|-> return gdk_screen_get_height (screen) * 25.4 / 96;
# 75| }
# 76|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/gdk/broadway/gdkscreen-broadway.c: scope_hint: In function ‘_gdk_broadway_screen_size_changed’
gtk-3.24.49/gdk/broadway/gdkscreen-broadway.c:98:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 98 | width = gdk_screen_get_width (screen);
# | ^~~~~
gtk-3.24.49/gdk/gdkscreen.h:58:14: note: declared here
# 58 | gint gdk_screen_get_width (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~
# 96| GList *toplevels, *l;
# 97|
# 98|-> width = gdk_screen_get_width (screen);
# 99| height = gdk_screen_get_height (screen);
# 100|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/gdk/broadway/gdkscreen-broadway.c:99:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 99 | height = gdk_screen_get_height (screen);
# | ^~~~~~
gtk-3.24.49/gdk/gdkscreen.h:60:14: note: declared here
# 60 | gint gdk_screen_get_height (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~~
# 97|
# 98| width = gdk_screen_get_width (screen);
# 99|-> height = gdk_screen_get_height (screen);
# 100|
# 101| broadway_screen->width = msg->width;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/gdk/broadway/gdkscreen-broadway.c:104:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 104 | if (width == gdk_screen_get_width (screen) &&
# | ^~
gtk-3.24.49/gdk/gdkscreen.h:58:14: note: declared here
# 58 | gint gdk_screen_get_width (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~
# 102| broadway_screen->height = msg->height;
# 103|
# 104|-> if (width == gdk_screen_get_width (screen) &&
# 105| height == gdk_screen_get_height (screen))
# 106| return;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/gdk/broadway/gdkscreen-broadway.c:105:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 105 | height == gdk_screen_get_height (screen))
# | ^~~~~~
gtk-3.24.49/gdk/gdkscreen.h:60:14: note: declared here
# 60 | gint gdk_screen_get_height (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~~
# 103|
# 104| if (width == gdk_screen_get_width (screen) &&
# 105|-> height == gdk_screen_get_height (screen))
# 106| return;
# 107|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/gdk/broadway/gdkscreen-broadway.c:122:33: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 122 | gdk_screen_get_width (screen),
# | ^~~~~~~~~~~~~~~~~~~~
gtk-3.24.49/gdk/gdkscreen.h:58:14: note: declared here
# 58 | gint gdk_screen_get_width (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~
# 120| if (toplevel_impl->maximized)
# 121| gdk_window_move_resize (toplevel, 0, 0,
# 122|-> gdk_screen_get_width (screen),
# 123| gdk_screen_get_height (screen));
# 124| }
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/gdk/broadway/gdkscreen-broadway.c:123:33: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 123 | gdk_screen_get_height (screen));
# | ^~~~~~~~~~~~~~~~~~~~~
gtk-3.24.49/gdk/gdkscreen.h:60:14: note: declared here
# 60 | gint gdk_screen_get_height (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~~
# 121| gdk_window_move_resize (toplevel, 0, 0,
# 122| gdk_screen_get_width (screen),
# 123|-> gdk_screen_get_height (screen));
# 124| }
# 125| }
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/gdk/broadway/gdkwindow-broadway.c: scope_hint: In function ‘_gdk_broadway_screen_init_root_window’
gtk-3.24.49/gdk/broadway/gdkwindow-broadway.c:234:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 234 | window->width = gdk_screen_get_width (screen);
# | ^~~~~~
gtk-3.24.49/gdk/gdkscreenprivate.h:21: included_from: Included from here.
gtk-3.24.49/gdk/broadway/gdkscreen-broadway.h:25: included_from: Included from here.
gtk-3.24.49/gdk/broadway/gdkwindow-broadway.c:29: included_from: Included from here.
gtk-3.24.49/gdk/gdkscreen.h:58:14: note: declared here
# 58 | gint gdk_screen_get_width (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~
# 232| window->abs_x = 0;
# 233| window->abs_y = 0;
# 234|-> window->width = gdk_screen_get_width (screen);
# 235| window->height = gdk_screen_get_height (screen);
# 236| window->viewable = TRUE;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/gdk/broadway/gdkwindow-broadway.c:235:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 235 | window->height = gdk_screen_get_height (screen);
# | ^~~~~~
gtk-3.24.49/gdk/gdkscreen.h:60:14: note: declared here
# 60 | gint gdk_screen_get_height (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~~
# 233| window->abs_y = 0;
# 234| window->width = gdk_screen_get_width (screen);
# 235|-> window->height = gdk_screen_get_height (screen);
# 236| window->viewable = TRUE;
# 237|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/gdk/broadway/gdkwindow-broadway.c: scope_hint: In function ‘gdk_broadway_window_maximize’
gtk-3.24.49/gdk/broadway/gdkwindow-broadway.c:922:27: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 922 | gdk_screen_get_width (screen),
# | ^~~~~~~~~~~~~~~~~~~~
gtk-3.24.49/gdk/gdkscreen.h:58:14: note: declared here
# 58 | gint gdk_screen_get_width (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~
# 920|
# 921| gdk_window_move_resize (window, 0, 0,
# 922|-> gdk_screen_get_width (screen),
# 923| gdk_screen_get_height (screen));
# 924| }
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/gdk/broadway/gdkwindow-broadway.c:923:27: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 923 | gdk_screen_get_height (screen));
# | ^~~~~~~~~~~~~~~~~~~~~
gtk-3.24.49/gdk/gdkscreen.h:60:14: note: declared here
# 60 | gint gdk_screen_get_height (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~~
# 921| gdk_window_move_resize (window, 0, 0,
# 922| gdk_screen_get_width (screen),
# 923|-> gdk_screen_get_height (screen));
# 924| }
# 925|
Error: CPPCHECK_WARNING (CWE-457):
gtk-3.24.49/gdk/wayland/gdkdevice-wayland.c:554: warning[uninitvar]: Uninitialized variable: buffer
# 552| }
# 553|
# 554|-> if (buffer)
# 555| {
# 556| wl_surface_attach (pointer->pointer_surface, buffer, 0, 0);
Error: COMPILER_WARNING (CWE-457):
gtk-3.24.49/gdk/wayland/gdkdevice-wayland.c: scope_hint: In function ‘gdk_wayland_device_update_window_cursor’
gtk-3.24.49/gdk/wayland/gdkdevice-wayland.c:554:6: warning[-Wmaybe-uninitialized]: ‘buffer’ may be used uninitialized
# 554 | if (buffer)
# | ^
gtk-3.24.49/gdk/wayland/gdkdevice-wayland.c:487:21: note: ‘buffer’ was declared here
# 487 | struct wl_buffer *buffer;
# | ^~~~~~
# 552| }
# 553|
# 554|-> if (buffer)
# 555| {
# 556| wl_surface_attach (pointer->pointer_surface, buffer, 0, 0);
Error: COMPILER_WARNING:
gtk-3.24.49/gdk/wayland/gdkdisplay-wayland.c: scope_hint: In function ‘log_handler’
gtk-3.24.49/gdk/wayland/gdkdisplay-wayland.c:592:3: warning[-Wsuggest-attribute=format]: function ‘log_handler’ might be a candidate for ‘gnu_printf’ format attribute
# 592 | g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, format, args);
# | ^~~~~~
# 590| log_handler (const char *format, va_list args)
# 591| {
# 592|-> g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, format, args);
# 593| }
# 594|
Error: CPPCHECK_WARNING (CWE-457):
gtk-3.24.49/gdk/x11/gdkasync.c:354: error[uninitvar]: Uninitialized variables: state.dpy, state.get_property_req
# 352| async.next = dpy->async_handlers;
# 353| async.handler = list_children_handler;
# 354|-> async.data = (XPointer) &state;
# 355| dpy->async_handlers = &async;
# 356|
Error: CPPCHECK_WARNING (CWE-562):
gtk-3.24.49/gdk/x11/gdkasync.c:355: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 353| async.handler = list_children_handler;
# 354| async.data = (XPointer) &state;
# 355|-> dpy->async_handlers = &async;
# 356|
# 357| GetReq (GetProperty, prop_req);
Error: COMPILER_WARNING (CWE-457):
gtk-3.24.49/gdk/x11/gdkglcontext-x11.c:418:26: warning[-Wmaybe-uninitialized]: ‘config’ may be used uninitialized
# 418 | glx_pixmap->drawable = glXCreatePixmap (display, config,
# | ^
gtk-3.24.49/gdk/x11/gdkglcontext-x11.c: scope_hint: In function ‘gdk_x11_gl_context_texture_from_surface’
gtk-3.24.49/gdk/x11/gdkglcontext-x11.c:318:27: note: ‘config’ was declared here
# 318 | GLXFBConfig *fbconfigs, config;
# | ^~~~~~
# 416| glx_pixmap->y_inverted = y_inverted;
# 417| glx_pixmap->display = display;
# 418|-> glx_pixmap->drawable = glXCreatePixmap (display, config,
# 419| cairo_xlib_surface_get_drawable (surface),
# 420| pixmap_attributes);
Error: CPPCHECK_WARNING (CWE-190):
gtk-3.24.49/gdk/x11/gdkscreen-x11.c:1085: error[integerOverflow]: Signed integer underflow for expression 'x2-x1'.
# 1083| }
# 1084|
# 1085|-> x11_screen->width = x2 - x1;
# 1086| x11_screen->height = y2 - y1;
# 1087| }
Error: CPPCHECK_WARNING (CWE-457):
gtk-3.24.49/gtk/deprecated/gtkhandlebox.c:1520: error[uninitvar]: Uninitialized variable: &geometry
# 1518| gdk_window_move_resize (priv->float_window, new_x, new_y, width, height);
# 1519| gdk_window_reparent (priv->bin_window, priv->float_window, 0, 0);
# 1520|-> gdk_window_set_geometry_hints (priv->float_window, &geometry, GDK_HINT_POS);
# 1521| gdk_window_show (priv->float_window);
# 1522| priv->float_window_mapped = TRUE;
Error: CPPCHECK_WARNING (CWE-476):
gtk-3.24.49/gtk/deprecated/gtkrc.c:1939: warning[nullPointer]: Possible null pointer dereference: slist_p
# 1937| pspec->user_data = binding_set;
# 1938|
# 1939|-> slist = *slist_p;
# 1940| while (slist)
# 1941| {
Error: CPPCHECK_WARNING (CWE-457):
gtk-3.24.49/gtk/gtkaccelgroup.c:589: warning[uninitvar]: Uninitialized variables: &key.closure, &key.accel_path_quark
# 587| key.key.accel_key = accel_key;
# 588| key.key.accel_mods = accel_mods;
# 589|-> entry = bsearch (&key, accel_group->priv->priv_accels, accel_group->priv->n_accels,
# 590| sizeof (accel_group->priv->priv_accels[0]), bsearch_compare_accels);
# 591|
Error: COMPILER_WARNING (CWE-134):
gtk-3.24.49/gtk/gtkcalendar.c: scope_hint: In function ‘gtk_calendar_init’
gtk-3.24.49/gtk/gtkcalendar.c:742:13: warning[-Wformat-nonliteral]: format not a string literal, format string not checked
# 742 | strftime (buffer, sizeof (buffer), month_format, gmtime (&tmp_time));
# | ^~~~~~~~
# 740| buffer[0] = '\0';
# 741| month_format = "%OB";
# 742|-> strftime (buffer, sizeof (buffer), month_format, gmtime (&tmp_time));
# 743| /* "%OB" is not supported in Linux with glibc < 2.27 */
# 744| if (!strcmp (buffer, "%OB") || !strcmp (buffer, "OB") || !strcmp (buffer, ""))
Error: COMPILER_WARNING (CWE-134):
gtk-3.24.49/gtk/gtkcalendar.c:747:17: warning[-Wformat-nonliteral]: format not a string literal, format string not checked
# 747 | strftime (buffer, sizeof (buffer), month_format, gmtime (&tmp_time));
# | ^~~~~~~~
# 745| {
# 746| month_format = "%B";
# 747|-> strftime (buffer, sizeof (buffer), month_format, gmtime (&tmp_time));
# 748| }
# 749| }
Error: COMPILER_WARNING (CWE-134):
gtk-3.24.49/gtk/gtkcalendar.c:751:11: warning[-Wformat-nonliteral]: format not a string literal, format string not checked
# 751 | strftime (buffer, sizeof (buffer), month_format, gmtime (&tmp_time));
# | ^~~~~~~~
# 749| }
# 750| else
# 751|-> strftime (buffer, sizeof (buffer), month_format, gmtime (&tmp_time));
# 752|
# 753| default_monthname[i] = g_locale_to_utf8 (buffer, -1, NULL, NULL, NULL);
Error: CPPCHECK_WARNING (CWE-758):
gtk-3.24.49/gtk/gtkcomposetable.c:753: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 751| g_string_append_c (char_data, 0);
# 752|
# 753|-> codepoint = char_data->len | (1 << 31);
# 754|
# 755| g_string_append (char_data, compose_data->value);
Error: CPPCHECK_WARNING (CWE-758):
gtk-3.24.49/gtk/gtkcomposetable.c:760: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 758| {
# 759| codepoint = g_utf8_get_char (compose_data->value);
# 760|-> g_assert ((codepoint & (1 << 31)) == 0);
# 761| }
# 762|
Error: CPPCHECK_WARNING (CWE-758):
gtk-3.24.49/gtk/gtkcomposetable.c:964: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 962|
# 963| value = (seq[table->max_seq_len] << 16) | seq[table->max_seq_len + 1];
# 964|-> if ((value & (1 << 31)) != 0)
# 965| g_string_append (output, &table->char_data[value & ~(1 << 31)]);
# 966| else
Error: CPPCHECK_WARNING (CWE-758):
gtk-3.24.49/gtk/gtkcomposetable.c:965: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 963| value = (seq[table->max_seq_len] << 16) | seq[table->max_seq_len + 1];
# 964| if ((value & (1 << 31)) != 0)
# 965|-> g_string_append (output, &table->char_data[value & ~(1 << 31)]);
# 966| else
# 967| g_string_append_unichar (output, value);
Error: COMPILER_WARNING (CWE-1023):
gtk-3.24.49/gtk/gtkfontbutton.c:1253:7: warning[-Wswitch]: enumeration value ‘PANGO_VARIANT_ALL_PETITE_CAPS’ not handled in switch
# 1251| if (set & PANGO_FONT_MASK_VARIANT)
# 1252| {
# 1253|-> switch (pango_font_description_get_variant (desc))
# 1254| {
# 1255| case PANGO_VARIANT_NORMAL:
Error: COMPILER_WARNING (CWE-1023):
gtk-3.24.49/gtk/gtkfontbutton.c: scope_hint: In function ‘pango_font_description_to_css’
gtk-3.24.49/gtk/gtkfontbutton.c:1253:7: warning[-Wswitch]: enumeration value ‘PANGO_VARIANT_ALL_SMALL_CAPS’ not handled in switch
# 1253 | switch (pango_font_description_get_variant (desc))
# | ^~~~~~
# 1251| if (set & PANGO_FONT_MASK_VARIANT)
# 1252| {
# 1253|-> switch (pango_font_description_get_variant (desc))
# 1254| {
# 1255| case PANGO_VARIANT_NORMAL:
Error: COMPILER_WARNING (CWE-1023):
gtk-3.24.49/gtk/gtkfontbutton.c:1253:7: warning[-Wswitch]: enumeration value ‘PANGO_VARIANT_PETITE_CAPS’ not handled in switch
# 1251| if (set & PANGO_FONT_MASK_VARIANT)
# 1252| {
# 1253|-> switch (pango_font_description_get_variant (desc))
# 1254| {
# 1255| case PANGO_VARIANT_NORMAL:
Error: COMPILER_WARNING (CWE-1023):
gtk-3.24.49/gtk/gtkfontbutton.c:1253:7: warning[-Wswitch]: enumeration value ‘PANGO_VARIANT_TITLE_CAPS’ not handled in switch
# 1251| if (set & PANGO_FONT_MASK_VARIANT)
# 1252| {
# 1253|-> switch (pango_font_description_get_variant (desc))
# 1254| {
# 1255| case PANGO_VARIANT_NORMAL:
Error: COMPILER_WARNING (CWE-1023):
gtk-3.24.49/gtk/gtkfontbutton.c:1253:7: warning[-Wswitch]: enumeration value ‘PANGO_VARIANT_UNICASE’ not handled in switch
# 1251| if (set & PANGO_FONT_MASK_VARIANT)
# 1252| {
# 1253|-> switch (pango_font_description_get_variant (desc))
# 1254| {
# 1255| case PANGO_VARIANT_NORMAL:
Error: COMPILER_WARNING (CWE-1164):
gtk-3.24.49/gtk/gtkfontchooserwidget.c:1676:8: warning[-Wignored-qualifiers]: type qualifiers ignored on function return type
# 1676 | static const float
# | ^~~~~
# 1674| #define get_float_value(x) x
# 1675|
# 1676|-> static const float
# 1677| get_axis_float_max (hb_ot_var_axis_info_t *ax)
# 1678| {
Error: COMPILER_WARNING (CWE-1164):
gtk-3.24.49/gtk/gtkfontchooserwidget.c:1682:8: warning[-Wignored-qualifiers]: type qualifiers ignored on function return type
# 1682 | static const float
# | ^~~~~
# 1680| }
# 1681|
# 1682|-> static const float
# 1683| get_axis_float_min (hb_ot_var_axis_info_t *ax)
# 1684| {
Error: COMPILER_WARNING (CWE-1164):
gtk-3.24.49/gtk/gtkfontchooserwidget.c:1688:8: warning[-Wignored-qualifiers]: type qualifiers ignored on function return type
# 1688 | static const float
# | ^~~~~
# 1686| }
# 1687|
# 1688|-> static const float
# 1689| get_axis_float_default (hb_ot_var_axis_info_t *ax)
# 1690| {
Error: COMPILER_WARNING (CWE-681):
gtk-3.24.49/gtk/gtkfontchooserwidget.c: scope_hint: In function ‘gtk_font_chooser_widget_update_font_variations’
gtk-3.24.49/gtk/gtkfontchooserwidget.c:1859:41: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘hb_ot_var_get_axis_infos’ differ in signedness
# 1859 | hb_ot_var_get_axis_infos (hb_face, 0, &num_axes, axes);
# | ^~~~~~~~~
# | |
# | int *
/usr/include/harfbuzz/hb-ot.h:42: included_from: Included from here.
gtk-3.24.49/gtk/gtkfontchooserwidget.c:75: included_from: Included from here.
/usr/include/harfbuzz/hb-ot-var.h:140:50: note: expected ‘unsigned int *’ but argument is of type ‘int *’
# 140 | unsigned int *axes_count /* IN/OUT */,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
# 1857| num_axes = hb_ot_var_get_axis_count (hb_face);
# 1858| axes = g_new0 (hb_ot_var_axis_info_t, num_axes);
# 1859|-> hb_ot_var_get_axis_infos (hb_face, 0, &num_axes, axes);
# 1860|
# 1861| for (i = 0; i < num_axes; i ++)
Error: COMPILER_WARNING:
gtk-3.24.49/gtk/gtkfontchooserwidget.c: scope_hint: In function ‘gtk_font_chooser_widget_update_font_features’
gtk-3.24.49/gtk/gtkfontchooserwidget.c:2476:5: warning[-Wundef]: ‘FONT_FEATURES_USE_PANGOFT2’ is not defined, evaluates to ‘0’
# 2476 | #if FONT_FEATURES_USE_PANGOFT2
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2474| }
# 2475|
# 2476|-> #if FONT_FEATURES_USE_PANGOFT2
# 2477| if (PANGO_IS_FC_FONT (pango_font))
# 2478| pango_fc_font_unlock_face (PANGO_FC_FONT (pango_font));
Error: COMPILER_WARNING (CWE-563):
gtk-3.24.49/gtk/gtkicontheme.c: scope_hint: In function ‘gtk_icon_info_load_symbolic_svg’
gtk-3.24.49/gtk/gtkicontheme.c:4500:8: warning[-Wunused-but-set-variable]: variable ‘symbolic_size’ set but not used
# 4500 | gint symbolic_size;
# | ^~~~~~~~~~~~~
# 4498| gchar *file_data, *escaped_file_data;
# 4499| gsize file_len;
# 4500|-> gint symbolic_size;
# 4501| double alpha;
# 4502| gchar alphastr[G_ASCII_DTOSTR_BUF_SIZE];
Error: COMPILER_WARNING:
gtk-3.24.49/gtk/gtkimmodule.c: scope_hint: In function ‘gtk_im_module_initialize’
gtk-3.24.49/gtk/gtkimmodule.c:353:17: warning[-Wnested-externs]: nested extern declaration of ‘_gtk_immodule_wayland_list’
# 353 | extern void _gtk_immodule_ ## m ## _list (const GtkIMContextInfo ***contexts, \
# | ^~~~~~~~~~~~~~
gtk-3.24.49/gtk/gtkimmodule.c:407:3: note: in expansion of macro ‘do_builtin’
# 407 | do_builtin (wayland);
# | ^~~~~~~~~~
# 351| const GtkIMContextInfo **contexts; \
# 352| int n_contexts; \
# 353|-> extern void _gtk_immodule_ ## m ## _list (const GtkIMContextInfo ***contexts, \
# 354| int *n_contexts); \
# 355| extern void _gtk_immodule_ ## m ## _init (GTypeModule *module); \
Error: COMPILER_WARNING:
gtk-3.24.49/gtk/gtkimmodule.c:355:17: warning[-Wnested-externs]: nested extern declaration of ‘_gtk_immodule_wayland_init’
# 355 | extern void _gtk_immodule_ ## m ## _init (GTypeModule *module); \
# | ^~~~~~~~~~~~~~
gtk-3.24.49/gtk/gtkimmodule.c:407:3: note: in expansion of macro ‘do_builtin’
# 407 | do_builtin (wayland);
# | ^~~~~~~~~~
# 353| extern void _gtk_immodule_ ## m ## _list (const GtkIMContextInfo ***contexts, \
# 354| int *n_contexts); \
# 355|-> extern void _gtk_immodule_ ## m ## _init (GTypeModule *module); \
# 356| extern void _gtk_immodule_ ## m ## _exit (void); \
# 357| extern GtkIMContext *_gtk_immodule_ ## m ## _create (const gchar *context_id); \
Error: COMPILER_WARNING:
gtk-3.24.49/gtk/gtkimmodule.c:356:17: warning[-Wnested-externs]: nested extern declaration of ‘_gtk_immodule_wayland_exit’
# 356 | extern void _gtk_immodule_ ## m ## _exit (void); \
# | ^~~~~~~~~~~~~~
gtk-3.24.49/gtk/gtkimmodule.c:407:3: note: in expansion of macro ‘do_builtin’
# 407 | do_builtin (wayland);
# | ^~~~~~~~~~
# 354| int *n_contexts); \
# 355| extern void _gtk_immodule_ ## m ## _init (GTypeModule *module); \
# 356|-> extern void _gtk_immodule_ ## m ## _exit (void); \
# 357| extern GtkIMContext *_gtk_immodule_ ## m ## _create (const gchar *context_id); \
# 358| \
Error: COMPILER_WARNING:
gtk-3.24.49/gtk/gtkimmodule.c:357:26: warning[-Wnested-externs]: nested extern declaration of ‘_gtk_immodule_wayland_create’
# 357 | extern GtkIMContext *_gtk_immodule_ ## m ## _create (const gchar *context_id); \
# | ^~~~~~~~~~~~~~
gtk-3.24.49/gtk/gtkimmodule.c:407:3: note: in expansion of macro ‘do_builtin’
# 407 | do_builtin (wayland);
# | ^~~~~~~~~~
# 355| extern void _gtk_immodule_ ## m ## _init (GTypeModule *module); \
# 356| extern void _gtk_immodule_ ## m ## _exit (void); \
# 357|-> extern GtkIMContext *_gtk_immodule_ ## m ## _create (const gchar *context_id); \
# 358| \
# 359| _gtk_immodule_ ## m ## _list (&contexts, &n_contexts); \
Error: CPPCHECK_WARNING (CWE-457):
gtk-3.24.49/gtk/gtkmain.c:365: error[uninitvar]: Uninitialized variable: euid
# 363| /* These aren't in the header files, so we prototype them here.
# 364| */
# 365|-> int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 366| int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 367|
Error: CPPCHECK_WARNING (CWE-457):
gtk-3.24.49/gtk/gtkmain.c:365: error[uninitvar]: Uninitialized variable: ruid
# 363| /* These aren't in the header files, so we prototype them here.
# 364| */
# 365|-> int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 366| int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 367|
Error: CPPCHECK_WARNING (CWE-457):
gtk-3.24.49/gtk/gtkmain.c:365: error[uninitvar]: Uninitialized variable: suid
# 363| /* These aren't in the header files, so we prototype them here.
# 364| */
# 365|-> int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 366| int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 367|
Error: COMPILER_WARNING:
gtk-3.24.49/gtk/gtkmain.c: scope_hint: In function ‘check_setugid’
gtk-3.24.49/gtk/gtkmain.c:365:7: warning[-Wnested-externs]: nested extern declaration of ‘getresuid’
# 365 | int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# | ^~~~~~~~~
# 363| /* These aren't in the header files, so we prototype them here.
# 364| */
# 365|-> int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 366| int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 367|
Error: CPPCHECK_WARNING (CWE-457):
gtk-3.24.49/gtk/gtkmain.c:366: error[uninitvar]: Uninitialized variable: egid
# 364| */
# 365| int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 366|-> int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 367|
# 368| if (getresuid (&ruid, &euid, &suid) != 0 ||
Error: CPPCHECK_WARNING (CWE-457):
gtk-3.24.49/gtk/gtkmain.c:366: error[uninitvar]: Uninitialized variable: rgid
# 364| */
# 365| int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 366|-> int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 367|
# 368| if (getresuid (&ruid, &euid, &suid) != 0 ||
Error: CPPCHECK_WARNING (CWE-457):
gtk-3.24.49/gtk/gtkmain.c:366: error[uninitvar]: Uninitialized variable: sgid
# 364| */
# 365| int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 366|-> int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 367|
# 368| if (getresuid (&ruid, &euid, &suid) != 0 ||
Error: COMPILER_WARNING:
gtk-3.24.49/gtk/gtkmain.c:366:7: warning[-Wnested-externs]: nested extern declaration of ‘getresgid’
# 366 | int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# | ^~~~~~~~~
# 364| */
# 365| int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 366|-> int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 367|
# 368| if (getresuid (&ruid, &euid, &suid) != 0 ||
Error: CPPCHECK_WARNING (CWE-909):
gtk-3.24.49/gtk/gtkmenu.c:5274: error[uninitStructMember]: Uninitialized struct member: rect.x
# 5272| if (effective)
# 5273| {
# 5274|-> double x = rect.x, y = rect.y;
# 5275|
# 5276| gdk_window_coords_to_parent (rect_window, x, y, &x, &y);
Error: CPPCHECK_WARNING (CWE-909):
gtk-3.24.49/gtk/gtkmenu.c:5274: error[uninitStructMember]: Uninitialized struct member: rect.y
# 5272| if (effective)
# 5273| {
# 5274|-> double x = rect.x, y = rect.y;
# 5275|
# 5276| gdk_window_coords_to_parent (rect_window, x, y, &x, &y);
Error: CPPCHECK_WARNING (CWE-476):
gtk-3.24.49/gtk/gtkprintunixdialog.c:3225: warning[nullPointer]: Possible null pointer dereference: enum_value
# 3223|
# 3224| g_assert (enum_value != NULL);
# 3225|-> gtk_printer_option_set (option, enum_value->value_nick);
# 3226| g_type_class_unref (enum_class);
# 3227|
Error: CPPCHECK_WARNING (CWE-457):
gtk-3.24.49/gtk/gtkscrolledwindow.c:3397: error[legacyUninitvar]: Uninitialized variable: child_allocation
# 3395| }
# 3396|
# 3397|-> *allocation = child_allocation;
# 3398| }
# 3399|
Error: CPPCHECK_WARNING (CWE-909):
gtk-3.24.49/gtk/gtkscrolledwindow.c:3397: error[uninitStructMember]: Uninitialized struct member: child_allocation.height
# 3395| }
# 3396|
# 3397|-> *allocation = child_allocation;
# 3398| }
# 3399|
Error: CPPCHECK_WARNING (CWE-909):
gtk-3.24.49/gtk/gtkscrolledwindow.c:3397: error[uninitStructMember]: Uninitialized struct member: child_allocation.width
# 3395| }
# 3396|
# 3397|-> *allocation = child_allocation;
# 3398| }
# 3399|
Error: CPPCHECK_WARNING (CWE-909):
gtk-3.24.49/gtk/gtkscrolledwindow.c:3397: error[uninitStructMember]: Uninitialized struct member: child_allocation.x
# 3395| }
# 3396|
# 3397|-> *allocation = child_allocation;
# 3398| }
# 3399|
Error: CPPCHECK_WARNING (CWE-909):
gtk-3.24.49/gtk/gtkscrolledwindow.c:3397: error[uninitStructMember]: Uninitialized struct member: child_allocation.y
# 3395| }
# 3396|
# 3397|-> *allocation = child_allocation;
# 3398| }
# 3399|
Error: COMPILER_WARNING (CWE-457):
gtk-3.24.49/gtk/gtksizerequest.c: scope_hint: In function ‘gtk_distribute_natural_allocation’
gtk-3.24.49/gtk/gtksizerequest.c:829:3: warning[-Wmaybe-uninitialized]: ‘spreading_36’ may be used uninitialized
# 829 | g_qsort_with_data (spreading,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 830 | n_requested_sizes, sizeof (guint),
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 831 | compare_gap, sizes);
# | ~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib.h:71: included_from: Included from here.
gtk-3.24.49/redhat-linux-build/gdk/gdkconfig.h:8: included_from: Included from here.
gtk-3.24.49/gdk/gdk.h:30: included_from: Included from here.
gtk-3.24.49/gtk/gtkwidget.h:32: included_from: Included from here.
gtk-3.24.49/gtk/gtksizerequest.h:25: included_from: Included from here.
gtk-3.24.49/gtk/gtksizerequest.c:24: included_from: Included from here.
/usr/include/glib-2.0/glib/gqsort.h:39:6: note: by argument 1 of type ‘const void *’ to ‘g_qsort_with_data’ declared here
# 39 | void g_qsort_with_data (gconstpointer pbase,
# | ^~~~~~~~~~~~~~~~~
# 827|
# 828| /* Sort descending by gap and position. */
# 829|-> g_qsort_with_data (spreading,
# 830| n_requested_sizes, sizeof (guint),
# 831| compare_gap, sizes);
Error: COMPILER_WARNING (CWE-457):
gtk-3.24.49/gtk/gtktextbtree.c: scope_hint: In function ‘tag_changed_cb’
gtk-3.24.49/gtk/gtktextbtree.c:5716:11: warning[-Wmaybe-uninitialized]: ‘height’ may be used uninitialized
# 5716 | gtk_text_layout_changed (view->layout, 0, height, height);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gtk-3.24.49/gtk/gtktextbtree.c:5713:23: note: ‘height’ was declared here
# 5713 | gint width, height;
# | ^~~~~~
# 5714|
# 5715| _gtk_text_btree_get_view_size (tree, view->view_id, &width, &height);
# 5716|-> gtk_text_layout_changed (view->layout, 0, height, height);
# 5717|
# 5718| view = view->next;
Error: CPPCHECK_WARNING (CWE-476):
gtk-3.24.49/gtk/gtktreemodelfilter.c:3006: warning[nullPointer]: Possible null pointer dereference: elt
# 3004| elt = GET_ELT (siter);
# 3005|
# 3006|-> if (!elt->children)
# 3007| gtk_tree_model_filter_build_level (filter, level, elt, FALSE);
# 3008| level = elt->children;
Error: CPPCHECK_WARNING (CWE-476):
gtk-3.24.49/gtk/gtktreemodelfilter.c:3075: warning[nullPointer]: Possible null pointer dereference: elt
# 3073|
# 3074| elt = GET_ELT (siter);
# 3075|-> if (!elt->children)
# 3076| gtk_tree_model_filter_build_level (filter, level, elt, FALSE);
# 3077| level = elt->children;
Error: CPPCHECK_WARNING (CWE-476):
gtk-3.24.49/gtk/gtktreemodelfilter.c:4214: warning[nullPointer]: Possible null pointer dereference: elt
# 4212|
# 4213| elt = GET_ELT (siter);
# 4214|-> if (elt->children == NULL)
# 4215| gtk_tree_model_filter_build_level (filter, level, elt, FALSE);
# 4216|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/input/gtkimcontextmultipress.c: scope_hint: In function ‘on_timeout’
gtk-3.24.49/modules/input/gtkimcontextmultipress.c:204:3: warning[-Wdeprecated-declarations]: ‘gdk_threads_enter’ is deprecated
# 204 | gdk_threads_enter ();
# | ^~~~~~~~~~~~~~~~~
gtk-3.24.49/gdk/gdk.h:61: included_from: Included from here.
gtk-3.24.49/gtk/gtk.h:30: included_from: Included from here.
gtk-3.24.49/modules/input/gtkimcontextmultipress.h:20: included_from: Included from here.
gtk-3.24.49/modules/input/gtkimcontextmultipress.c:20: included_from: Included from here.
gtk-3.24.49/gdk/gdkthreads.h:46:10: note: declared here
# 46 | void gdk_threads_enter (void);
# | ^~~~~~~~~~~~~~~~~
# 202| GtkImContextMultipress *multipress_context;
# 203|
# 204|-> gdk_threads_enter ();
# 205|
# 206| multipress_context = GTK_IM_CONTEXT_MULTIPRESS (data);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/input/gtkimcontextmultipress.c:214:3: warning[-Wdeprecated-declarations]: ‘gdk_threads_leave’ is deprecated
# 214 | gdk_threads_leave ();
# | ^~~~~~~~~~~~~~~~~
gtk-3.24.49/gdk/gdkthreads.h:48:10: note: declared here
# 48 | void gdk_threads_leave (void);
# | ^~~~~~~~~~~~~~~~~
# 212| multipress_context->timeout_id = 0;
# 213|
# 214|-> gdk_threads_leave ();
# 215|
# 216| return G_SOURCE_REMOVE; /* don't call me again */
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c: scope_hint: In function ‘cups_printer_create_cairo_surface’
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:436:7: warning[-Wdeprecated-declarations]: ‘ppdFindAttr’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 436 | ppd_attr = ppdFindAttr (ppd_file, "LanguageLevel", NULL);
# | ^~~~~~~~
gtk-3.24.49/modules/printbackends/cups/gtkprintercups.h:23: included_from: Included from here.
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:53: included_from: Included from here.
/usr/include/cups/ppd.h:400:26: note: declared here
# 400 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
# | ^~~~~~~~~~~
# 434| if (ppd_file != NULL)
# 435| {
# 436|-> ppd_attr = ppdFindAttr (ppd_file, "LanguageLevel", NULL);
# 437|
# 438| if (ppd_attr != NULL)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:443:11: warning[-Wdeprecated-declarations]: ‘ppdFindAttr’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 443 | ppd_attr_res = ppdFindAttr (ppd_file, "DefaultResolution", NULL);
# | ^~~~~~~~~~~~
/usr/include/cups/ppd.h:400:26: note: declared here
# 400 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
# | ^~~~~~~~~~~
# 441| if (gtk_print_settings_get_resolution (settings) == 0)
# 442| {
# 443|-> ppd_attr_res = ppdFindAttr (ppd_file, "DefaultResolution", NULL);
# 444|
# 445| if (ppd_attr_res != NULL)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:464:7: warning[-Wdeprecated-declarations]: ‘ppdFindAttr’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 464 | ppd_attr_res_screen_freq = ppdFindAttr (ppd_file, "ResScreenFreq", res_string);
# | ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:400:26: note: declared here
# 400 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
# | ^~~~~~~~~~~
# 462| res_string = g_strdup_printf ("%ddpi",
# 463| gtk_print_settings_get_resolution (settings));
# 464|-> ppd_attr_res_screen_freq = ppdFindAttr (ppd_file, "ResScreenFreq", res_string);
# 465| g_free (res_string);
# 466|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:472:11: warning[-Wdeprecated-declarations]: ‘ppdFindAttr’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 472 | ppd_attr_res_screen_freq = ppdFindAttr (ppd_file, "ResScreenFreq", res_string);
# | ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:400:26: note: declared here
# 400 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
# | ^~~~~~~~~~~
# 470| gtk_print_settings_get_resolution_x (settings),
# 471| gtk_print_settings_get_resolution_y (settings));
# 472|-> ppd_attr_res_screen_freq = ppdFindAttr (ppd_file, "ResScreenFreq", res_string);
# 473| g_free (res_string);
# 474| }
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:476:7: warning[-Wdeprecated-declarations]: ‘ppdFindAttr’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 476 | ppd_attr_screen_freq = ppdFindAttr (ppd_file, "ScreenFreq", NULL);
# | ^~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:400:26: note: declared here
# 400 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
# | ^~~~~~~~~~~
# 474| }
# 475|
# 476|-> ppd_attr_screen_freq = ppdFindAttr (ppd_file, "ScreenFreq", NULL);
# 477|
# 478| if (ppd_attr_res_screen_freq != NULL && atof (ppd_attr_res_screen_freq->value) > 0.0)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c: scope_hint: In function ‘add_cups_options’
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:609:7: warning[-Wdeprecated-declarations]: ‘ppdFindCustomOption’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 609 | coption = ppdFindCustomOption (printer->ppd_file, key);
# | ^~~~~~~
/usr/include/cups/ppd.h:425:26: note: declared here
# 425 | extern ppd_coption_t *ppdFindCustomOption(ppd_file_t *ppd,
# | ^~~~~~~~~~~~~~~~~~~
# 607| gboolean custom_values_enabled = FALSE;
# 608|
# 609|-> coption = ppdFindCustomOption (printer->ppd_file, key);
# 610| if (coption && coption->option)
# 611| {
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c: scope_hint: In function ‘cups_request_ppd_cb’
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:4080:7: warning[-Wdeprecated-declarations]: ‘ppdOpenFd’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 4080 | data->printer->ppd_file = ppdOpenFd (dup (g_io_channel_unix_get_fd (data->ppd_io)));
# | ^~~~
/usr/include/cups/ppd.h:389:26: note: declared here
# 389 | extern ppd_file_t *ppdOpenFd(int fd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
# | ^~~~~~~~~
# 4078| /* let ppdOpenFd take over the ownership of the open file */
# 4079| g_io_channel_seek_position (data->ppd_io, 0, G_SEEK_SET, NULL);
# 4080|-> data->printer->ppd_file = ppdOpenFd (dup (g_io_channel_unix_get_fd (data->ppd_io)));
# 4081| ppdLocalize (data->printer->ppd_file);
# 4082| ppdMarkDefaults (data->printer->ppd_file);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:4081:7: warning[-Wdeprecated-declarations]: ‘ppdLocalize’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 4081 | ppdLocalize (data->printer->ppd_file);
# | ^~~~~~~~~~~
/usr/include/cups/ppd.h:435:25: note: declared here
# 435 | extern int ppdLocalize(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
# | ^~~~~~~~~~~
# 4079| g_io_channel_seek_position (data->ppd_io, 0, G_SEEK_SET, NULL);
# 4080| data->printer->ppd_file = ppdOpenFd (dup (g_io_channel_unix_get_fd (data->ppd_io)));
# 4081|-> ppdLocalize (data->printer->ppd_file);
# 4082| ppdMarkDefaults (data->printer->ppd_file);
# 4083| }
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:4082:7: warning[-Wdeprecated-declarations]: ‘ppdMarkDefaults’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 4082 | ppdMarkDefaults (data->printer->ppd_file);
# | ^~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:385:25: note: declared here
# 385 | extern void ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
# | ^~~~~~~~~~~~~~~
# 4080| data->printer->ppd_file = ppdOpenFd (dup (g_io_channel_unix_get_fd (data->ppd_io)));
# 4081| ppdLocalize (data->printer->ppd_file);
# 4082|-> ppdMarkDefaults (data->printer->ppd_file);
# 4083| }
# 4084|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c: scope_hint: In function ‘available_choices’
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:5069:7: warning[-Wdeprecated-declarations]: ‘ppdFindOption’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 5069 | option1 = ppdFindOption (ppd, constraint->option1);
# | ^~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
# 381 | extern ppd_option_t *ppdFindOption(ppd_file_t *ppd, const char *keyword)
# | ^~~~~~~~~~~~~
# 5067| for (i = ppd->num_consts, constraint = ppd->consts; i > 0; i--, constraint++)
# 5068| {
# 5069|-> option1 = ppdFindOption (ppd, constraint->option1);
# 5070| if (option1 == NULL)
# 5071| continue;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:5073:7: warning[-Wdeprecated-declarations]: ‘ppdFindOption’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 5073 | option2 = ppdFindOption (ppd, constraint->option2);
# | ^~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
# 381 | extern ppd_option_t *ppdFindOption(ppd_file_t *ppd, const char *keyword)
# | ^~~~~~~~~~~~~
# 5071| continue;
# 5072|
# 5073|-> option2 = ppdFindOption (ppd, constraint->option2);
# 5074| if (option2 == NULL)
# 5075| continue;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c: scope_hint: In function ‘create_pickone_option’
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:5225:7: warning[-Wdeprecated-declarations]: ‘ppdFindCustomOption’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 5225 | coption = ppdFindCustomOption (ppd_file, ppd_option->keyword);
# | ^~~~~~~
/usr/include/cups/ppd.h:425:26: note: declared here
# 425 | extern ppd_coption_t *ppdFindCustomOption(ppd_file_t *ppd,
# | ^~~~~~~~~~~~~~~~~~~
# 5223| label = get_option_text (ppd_file, ppd_option);
# 5224|
# 5225|-> coption = ppdFindCustomOption (ppd_file, ppd_option->keyword);
# 5226|
# 5227| if (coption)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:5231:11: warning[-Wdeprecated-declarations]: ‘ppdFirstCustomParam’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 5231 | cparam = ppdFirstCustomParam (coption);
# | ^~~~~~
/usr/include/cups/ppd.h:430:26: note: declared here
# 430 | extern ppd_cparam_t *ppdFirstCustomParam(ppd_coption_t *opt)
# | ^~~~~~~~~~~~~~~~~~~
# 5229| ppd_cparam_t *cparam;
# 5230|
# 5231|-> cparam = ppdFirstCustomParam (coption);
# 5232|
# 5233| if (ppdNextCustomParam (coption) == NULL)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:5233:11: warning[-Wdeprecated-declarations]: ‘ppdNextCustomParam’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 5233 | if (ppdNextCustomParam (coption) == NULL)
# | ^~
/usr/include/cups/ppd.h:433:26: note: declared here
# 433 | extern ppd_cparam_t *ppdNextCustomParam(ppd_coption_t *opt) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
# | ^~~~~~~~~~~~~~~~~~
# 5231| cparam = ppdFirstCustomParam (coption);
# 5232|
# 5233|-> if (ppdNextCustomParam (coption) == NULL)
# 5234| {
# 5235| switch (cparam->type)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c: scope_hint: In function ‘cups_printer_get_options’
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:5933:7: warning[-Wdeprecated-declarations]: ‘ppdMarkDefaults’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 5933 | ppdMarkDefaults (ppd_file);
# | ^~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:385:25: note: declared here
# 385 | extern void ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
# | ^~~~~~~~~~~~~~~
# 5931| const gchar *ppd_name;
# 5932|
# 5933|-> ppdMarkDefaults (ppd_file);
# 5934|
# 5935| paper_size = gtk_page_setup_get_paper_size (page_setup);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:5937:7: warning[-Wdeprecated-declarations]: ‘ppdFindOption’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 5937 | ppd_option = ppdFindOption (ppd_file, "PageSize");
# | ^~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
# 381 | extern ppd_option_t *ppdFindOption(ppd_file_t *ppd, const char *keyword)
# | ^~~~~~~~~~~~~
# 5935| paper_size = gtk_page_setup_get_paper_size (page_setup);
# 5936|
# 5937|-> ppd_option = ppdFindOption (ppd_file, "PageSize");
# 5938| if (ppd_option)
# 5939| {
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c: scope_hint: In function ‘mark_option_from_set’
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:6118:5: warning[-Wdeprecated-declarations]: ‘ppdMarkOption’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 6118 | ppdMarkOption (ppd_file, ppd_option->keyword, option->value);
# | ^~~~~~~~~~~~~
/usr/include/cups/ppd.h:386:25: note: declared here
# 386 | extern int ppdMarkOption(ppd_file_t *ppd, const char *keyword,
# | ^~~~~~~~~~~~~
# 6116|
# 6117| if (option)
# 6118|-> ppdMarkOption (ppd_file, ppd_option->keyword, option->value);
# 6119|
# 6120| g_free (name);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c: scope_hint: In function ‘cups_printer_mark_conflicts’
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:6189:3: warning[-Wdeprecated-declarations]: ‘ppdMarkDefaults’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 6189 | ppdMarkDefaults (ppd_file);
# | ^~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:385:25: note: declared here
# 385 | extern void ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
# | ^~~~~~~~~~~~~~~
# 6187| return FALSE;
# 6188|
# 6189|-> ppdMarkDefaults (ppd_file);
# 6190|
# 6191| for (i = 0; i < ppd_file->num_groups; i++)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:6194:3: warning[-Wdeprecated-declarations]: ‘ppdConflicts’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 6194 | num_conflicts = ppdConflicts (ppd_file);
# | ^~~~~~~~~~~~~
/usr/include/cups/ppd.h:368:25: note: declared here
# 368 | extern int ppdConflicts(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
# | ^~~~~~~~~~~~
# 6192| mark_group_from_set (options, ppd_file, &ppd_file->groups[i]);
# 6193|
# 6194|-> num_conflicts = ppdConflicts (ppd_file);
# 6195|
# 6196| if (num_conflicts > 0)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c: scope_hint: In function ‘create_page_setup’
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:6843:3: warning[-Wdeprecated-declarations]: ‘ppdFindOption’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 6843 | option = ppdFindOption (ppd_file, "PageSize");
# | ^~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
# 381 | extern ppd_option_t *ppdFindOption(ppd_file_t *ppd, const char *keyword)
# | ^~~~~~~~~~~~~
# 6841|
# 6842| display_name = NULL;
# 6843|-> option = ppdFindOption (ppd_file, "PageSize");
# 6844| if (option)
# 6845| {
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:6846:7: warning[-Wdeprecated-declarations]: ‘ppdFindChoice’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 6846 | choice = ppdFindChoice (option, size->name);
# | ^~~~~~
/usr/include/cups/ppd.h:376:26: note: declared here
# 376 | extern ppd_choice_t *ppdFindChoice(ppd_option_t *o, const char *option)
# | ^~~~~~~~~~~~~
# 6844| if (option)
# 6845| {
# 6846|-> choice = ppdFindChoice (option, size->name);
# 6847| if (choice)
# 6848| display_name = ppd_text_to_utf8 (ppd_file, choice->text);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c: scope_hint: In function ‘cups_printer_get_default_page_size’
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:6976:7: warning[-Wdeprecated-declarations]: ‘ppdFindOption’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 6976 | option = ppdFindOption (ppd_file, "PageSize");
# | ^~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
# 381 | extern ppd_option_t *ppdFindOption(ppd_file_t *ppd, const char *keyword)
# | ^~~~~~~~~~~~~
# 6974| if (ppd_file != NULL)
# 6975| {
# 6976|-> option = ppdFindOption (ppd_file, "PageSize");
# 6977| if (option == NULL)
# 6978| return NULL;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/modules/printbackends/cups/gtkprintbackendcups.c:6980:7: warning[-Wdeprecated-declarations]: ‘ppdPageSize’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 6980 | size = ppdPageSize (ppd_file, option->defchoice);
# | ^~~~
/usr/include/cups/ppd.h:393:26: note: declared here
# 393 | extern ppd_size_t *ppdPageSize(ppd_file_t *ppd, const char *name)
# | ^~~~~~~~~~~
# 6978| return NULL;
# 6979|
# 6980|-> size = ppdPageSize (ppd_file, option->defchoice);
# 6981| if (size == NULL)
# 6982| return NULL;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../docs/tools/shooter.c:173:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_width’ is deprecated
# 171| }
# 172|
# 173|-> if (x_orig + width > gdk_screen_width ())
# 174| width = gdk_screen_width () - x_orig;
# 175|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../docs/tools/shooter.c:174:5: warning[-Wdeprecated-declarations]: ‘gdk_screen_width’ is deprecated
# 172|
# 173| if (x_orig + width > gdk_screen_width ())
# 174|-> width = gdk_screen_width () - x_orig;
# 175|
# 176| if (y_orig + height > gdk_screen_height ())
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../docs/tools/shooter.c:176:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_height’ is deprecated
# 174| width = gdk_screen_width () - x_orig;
# 175|
# 176|-> if (y_orig + height > gdk_screen_height ())
# 177| height = gdk_screen_height () - y_orig;
# 178|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../docs/tools/shooter.c:177:5: warning[-Wdeprecated-declarations]: ‘gdk_screen_height’ is deprecated
# 175|
# 176| if (y_orig + height > gdk_screen_height ())
# 177|-> height = gdk_screen_height () - y_orig;
# 178|
# 179| tmp = gdk_pixbuf_get_from_window (window,
Error: GCC_ANALYZER_WARNING (CWE-835):
gtk-3.24.49/redhat-linux-build/../gdk/broadway/broadwayd.c:347:14: warning[-Wanalyzer-infinite-loop]: infinite loop
gtk-3.24.49/redhat-linux-build/../gdk/broadway/broadwayd.c:347:14: danger: infinite loop here
gtk-3.24.49/redhat-linux-build/../gdk/broadway/broadwayd.c:347:14: branch_true: when ‘remaining > 3’: always following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gdk/broadway/broadwayd.c:349:11: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/broadway/broadwayd.c:351:14: branch_false: if it ever follows ‘false’ branch, it will always do so...
<unknown>: branch_false: ...to here
# 345|
# 346| remaining = count;
# 347|-> while (remaining >= sizeof (guint32))
# 348| {
# 349| memcpy (&size, buffer, sizeof (guint32));
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../gdk/broadway/gdkscreen-broadway.c:68:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 66| gdk_broadway_screen_get_width_mm (GdkScreen *screen)
# 67| {
# 68|-> return gdk_screen_get_width (screen) * 25.4 / 96;
# 69| }
# 70|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../gdk/broadway/gdkscreen-broadway.c:74:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 72| gdk_broadway_screen_get_height_mm (GdkScreen *screen)
# 73| {
# 74|-> return gdk_screen_get_height (screen) * 25.4 / 96;
# 75| }
# 76|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../gdk/broadway/gdkscreen-broadway.c:98:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 96| GList *toplevels, *l;
# 97|
# 98|-> width = gdk_screen_get_width (screen);
# 99| height = gdk_screen_get_height (screen);
# 100|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../gdk/broadway/gdkscreen-broadway.c:99:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 97|
# 98| width = gdk_screen_get_width (screen);
# 99|-> height = gdk_screen_get_height (screen);
# 100|
# 101| broadway_screen->width = msg->width;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../gdk/broadway/gdkscreen-broadway.c:104:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 102| broadway_screen->height = msg->height;
# 103|
# 104|-> if (width == gdk_screen_get_width (screen) &&
# 105| height == gdk_screen_get_height (screen))
# 106| return;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../gdk/broadway/gdkscreen-broadway.c:105:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 103|
# 104| if (width == gdk_screen_get_width (screen) &&
# 105|-> height == gdk_screen_get_height (screen))
# 106| return;
# 107|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../gdk/broadway/gdkscreen-broadway.c:122:33: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 120| if (toplevel_impl->maximized)
# 121| gdk_window_move_resize (toplevel, 0, 0,
# 122|-> gdk_screen_get_width (screen),
# 123| gdk_screen_get_height (screen));
# 124| }
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../gdk/broadway/gdkscreen-broadway.c:123:33: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 121| gdk_window_move_resize (toplevel, 0, 0,
# 122| gdk_screen_get_width (screen),
# 123|-> gdk_screen_get_height (screen));
# 124| }
# 125| }
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../gdk/broadway/gdkwindow-broadway.c:234:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 232| window->abs_x = 0;
# 233| window->abs_y = 0;
# 234|-> window->width = gdk_screen_get_width (screen);
# 235| window->height = gdk_screen_get_height (screen);
# 236| window->viewable = TRUE;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../gdk/broadway/gdkwindow-broadway.c:235:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 233| window->abs_y = 0;
# 234| window->width = gdk_screen_get_width (screen);
# 235|-> window->height = gdk_screen_get_height (screen);
# 236| window->viewable = TRUE;
# 237|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../gdk/broadway/gdkwindow-broadway.c:922:27: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 920|
# 921| gdk_window_move_resize (window, 0, 0,
# 922|-> gdk_screen_get_width (screen),
# 923| gdk_screen_get_height (screen));
# 924| }
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../gdk/broadway/gdkwindow-broadway.c:923:27: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 921| gdk_window_move_resize (window, 0, 0,
# 922| gdk_screen_get_width (screen),
# 923|-> gdk_screen_get_height (screen));
# 924| }
# 925|
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/gdkdevice.c:1708:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘axis_info_x’
gtk-3.24.49/redhat-linux-build/../gdk/gdkdevice.c:1672:1: enter_function: entry to ‘_gdk_device_translate_window_coord’
gtk-3.24.49/redhat-linux-build/../gdk/gdkdevice.c:1688:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gdk/gdkdevice.c:1691:15: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/gdkdevice.c:1693:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gdk/gdkdevice.c:1697:6: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/gdkdevice.c:1697:6: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/gdkdevice.c:1704:21: call_function: inlined call to ‘find_axis_info’ from ‘_gdk_device_translate_window_coord’
gtk-3.24.49/redhat-linux-build/../gdk/gdkdevice.c:1708:18: danger: dereference of NULL ‘axis_info_x’
# 1706| }
# 1707|
# 1708|-> device_width = axis_info_x->max_value - axis_info_x->min_value;
# 1709| device_height = axis_info_y->max_value - axis_info_y->min_value;
# 1710|
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1053:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1037:6: branch_true: following ‘true’ branch (when ‘grab’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1046:11: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1046:10: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1050:14: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1050:14: branch_false: following ‘false’ branch (when ‘last_grab’ is NULL)...
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1053:13: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1053:13: danger: dereference of NULL ‘_gdk_display_get_pointer_info(display, device)’
# 1051| src_window = last_grab->window;
# 1052| else
# 1053|-> src_window = info->window_under_pointer;
# 1054|
# 1055| if (src_window != grab->window)
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1062:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1037:6: branch_true: following ‘true’ branch (when ‘grab’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1046:11: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1046:10: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1050:14: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1050:14: branch_true: following ‘true’ branch (when ‘last_grab’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1051:13: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1062:14: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1062:38: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1062:38: danger: dereference of NULL ‘_gdk_display_get_pointer_info(display, device)’
# 1060| /* !owner_event Grabbing a window that we're not inside, current status is
# 1061| now NULL (i.e. outside grabbed window) */
# 1062|-> if (!grab->owner_events && info->window_under_pointer != grab->window)
# 1063| _gdk_display_set_window_under_pointer (display, device, NULL);
# 1064| }
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1079:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1037:6: branch_false: following ‘false’ branch (when ‘grab’ is NULL)...
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1069:6: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1069:6: branch_true: following ‘true’ branch (when ‘last_grab’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1073:10: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1073:10: branch_true: following ‘true’ branch (when ‘grab’ is NULL)...
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1079:15: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/gdkdisplay.c:1079:15: danger: dereference of NULL ‘_gdk_display_get_pointer_info(display, device)’
# 1077| * as that won't get told of this change with toplevel enter events.
# 1078| */
# 1079|-> if (info->toplevel_under_pointer)
# 1080| g_object_unref (info->toplevel_under_pointer);
# 1081| info->toplevel_under_pointer = NULL;
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/gdkevents.c:2164:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gdk/gdkevents.c:2157:1: enter_function: entry to ‘gdk_synthesize_click’
gtk-3.24.49/redhat-linux-build/../gdk/gdkevents.c:2163:16: call_function: calling ‘gdk_event_copy’ from ‘gdk_synthesize_click’
gtk-3.24.49/redhat-linux-build/../gdk/gdkevents.c:2163:16: return_function: returning to ‘gdk_synthesize_click’ from ‘gdk_event_copy’
gtk-3.24.49/redhat-linux-build/../gdk/gdkevents.c:2164:3: danger: dereference of NULL ‘gdk_event_copy(event)’
# 2162|
# 2163| event_copy = gdk_event_copy (event);
# 2164|-> event_copy->type = (nclicks == 2) ? GDK_2BUTTON_PRESS : GDK_3BUTTON_PRESS;
# 2165|
# 2166| _gdk_event_queue_append (display, event_copy);
Error: GCC_ANALYZER_WARNING (CWE-457):
gtk-3.24.49/redhat-linux-build/../gdk/wayland/gdkdevice-wayland.c:543:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘y’
gtk-3.24.49/redhat-linux-build/../gdk/wayland/gdkdevice-wayland.c:4776:1: enter_function: entry to ‘on_monitors_changed’
gtk-3.24.49/redhat-linux-build/../gdk/wayland/gdkdevice-wayland.c:4779:3: call_function: calling ‘pointer_surface_update_scale’ from ‘on_monitors_changed’
# 541| else if (seat->wl_pointer)
# 542| {
# 543|-> wl_pointer_set_cursor (seat->wl_pointer,
# 544| pointer->enter_serial,
# 545| pointer->pointer_surface,
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/wayland/gdkdevice-wayland.c:619:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pointer’
gtk-3.24.49/redhat-linux-build/../gdk/wayland/gdkdevice-wayland.c:5622:1: enter_function: entry to ‘gdk_wayland_seat_set_global_cursor’
gtk-3.24.49/redhat-linux-build/../gdk/wayland/gdkdevice-wayland.c:5631:3: call_function: calling ‘gdk_wayland_device_get_focus’ from ‘gdk_wayland_seat_set_global_cursor’
gtk-3.24.49/redhat-linux-build/../gdk/wayland/gdkdevice-wayland.c:5631:3: return_function: returning to ‘gdk_wayland_seat_set_global_cursor’ from ‘gdk_wayland_device_get_focus’
gtk-3.24.49/redhat-linux-build/../gdk/wayland/gdkdevice-wayland.c:5631:3: call_function: calling ‘gdk_wayland_device_set_window_cursor’ from ‘gdk_wayland_seat_set_global_cursor’
# 617| if (!cursor)
# 618| {
# 619|-> guint scale = pointer->current_output_scale;
# 620| cursor =
# 621| _gdk_wayland_display_get_cursor_for_name_with_scale (seat->display,
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/wayland/gdkdevice-wayland.c:626:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pointer’
gtk-3.24.49/redhat-linux-build/../gdk/wayland/gdkdevice-wayland.c:5622:1: enter_function: entry to ‘gdk_wayland_seat_set_global_cursor’
gtk-3.24.49/redhat-linux-build/../gdk/wayland/gdkdevice-wayland.c:5631:3: call_function: calling ‘gdk_wayland_device_get_focus’ from ‘gdk_wayland_seat_set_global_cursor’
gtk-3.24.49/redhat-linux-build/../gdk/wayland/gdkdevice-wayland.c:5631:3: return_function: returning to ‘gdk_wayland_seat_set_global_cursor’ from ‘gdk_wayland_device_get_focus’
gtk-3.24.49/redhat-linux-build/../gdk/wayland/gdkdevice-wayland.c:5631:3: call_function: calling ‘gdk_wayland_device_set_window_cursor’ from ‘gdk_wayland_seat_set_global_cursor’
# 624| }
# 625| else
# 626|-> _gdk_wayland_cursor_set_scale (cursor, pointer->current_output_scale);
# 627|
# 628| if (cursor == pointer->cursor)
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/wayland/gdkdevice-wayland.c:4583:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 4581| event->pad_button.button = button;
# 4582| event->pad_button.group = n_group;
# 4583|-> event->pad_button.mode = group->current_mode;
# 4584| event->pad_button.time = time;
# 4585| gdk_event_set_device (event, pad->device);
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/wayland/gdkscreen-wayland.c:356:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gdk/wayland/gdkscreen-wayland.c:619:1: enter_function: entry to ‘settings_changed’
gtk-3.24.49/redhat-linux-build/../gdk/wayland/gdkscreen-wayland.c:634:9: call_function: calling ‘update_xft_settings’ from ‘settings_changed’
# 354| entry = find_translation_entry_by_schema ("org.gnome.desktop.interface", "font-antialiasing");
# 355|
# 356|-> if (entry->valid)
# 357| {
# 358| antialiasing = entry->fallback.i;
Error: GCC_ANALYZER_WARNING (CWE-685):
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkdisplay-x11.c:2370:7: warning[-Wanalyzer-va-list-exhausted]: ‘ap’ has no more arguments (3 consumed)
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkdisplay-x11.c:2401:1: enter_function: entry to ‘gdk_x11_display_notify_startup_complete’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkdisplay-x11.c:2406:6: branch_false: following ‘false’ branch (when ‘startup_id’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkdisplay-x11.c:2417:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkdisplay-x11.c:2417:3: call_function: calling ‘gdk_x11_display_broadcast_startup_message’ from ‘gdk_x11_display_notify_startup_complete’ with 3 variadic arguments
# 2368| while ((key = va_arg (ap, const char *)))
# 2369| {
# 2370|-> value = va_arg (ap, const char *);
# 2371| if (!value)
# 2372| continue;
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:934:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2035:1: enter_function: entry to ‘gdk_window_x11_reparent’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2044:3: call_function: calling ‘_gdk_x11_window_tmp_unset_bg’ from ‘gdk_window_x11_reparent’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2044:3: return_function: returning to ‘gdk_window_x11_reparent’ from ‘_gdk_x11_window_tmp_unset_bg’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2052:3: call_function: calling ‘_gdk_x11_window_tmp_reset_bg’ from ‘gdk_window_x11_reparent’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2052:3: return_function: returning to ‘gdk_window_x11_reparent’ from ‘_gdk_x11_window_tmp_reset_bg’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2073:10: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2084:11: call_function: calling ‘setup_toplevel_window’ from ‘gdk_window_x11_reparent’
# 932| * press events so they don't get sent to child windows.
# 933| */
# 934|-> toplevel->focus_window = create_focus_window (display, xid);
# 935| _gdk_x11_display_add_window (x11_screen->display,
# 936| &toplevel->focus_window,
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:974:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2035:1: enter_function: entry to ‘gdk_window_x11_reparent’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2044:3: call_function: calling ‘_gdk_x11_window_tmp_unset_bg’ from ‘gdk_window_x11_reparent’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2044:3: return_function: returning to ‘gdk_window_x11_reparent’ from ‘_gdk_x11_window_tmp_unset_bg’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2052:3: call_function: calling ‘_gdk_x11_window_tmp_reset_bg’ from ‘gdk_window_x11_reparent’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2052:3: return_function: returning to ‘gdk_window_x11_reparent’ from ‘_gdk_x11_window_tmp_reset_bg’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2073:10: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2084:11: call_function: calling ‘setup_toplevel_window’ from ‘gdk_window_x11_reparent’
# 972| (guchar *) &leader_window, 1);
# 973|
# 974|-> if (toplevel->focus_window != None)
# 975| XChangeProperty (xdisplay, xid,
# 976| gdk_x11_get_xatom_by_name_for_display (x11_screen->display, "_NET_WM_USER_TIME_WINDOW"),
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:1504:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:3589:1: enter_function: entry to ‘gdk_x11_window_set_accept_focus’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:3600:9: call_function: calling ‘update_wm_hints’ from ‘gdk_x11_window_set_accept_focus’
# 1502| }
# 1503|
# 1504|-> if (toplevel->icon_pixmap)
# 1505| {
# 1506| wm_hints.flags |= IconPixmapHint;
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2537:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 2535|
# 2536| toplevel = _gdk_x11_window_get_toplevel (window);
# 2537|-> toplevel->skip_taskbar_hint = skips_taskbar;
# 2538|
# 2539| if (GDK_WINDOW_IS_MAPPED (window))
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2558:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 2556|
# 2557| toplevel = _gdk_x11_window_get_toplevel (window);
# 2558|-> toplevel->skip_pager_hint = skips_pager;
# 2559|
# 2560| if (GDK_WINDOW_IS_MAPPED (window))
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2579:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2567:1: enter_function: entry to ‘gdk_x11_window_set_urgency_hint’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2572:3: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2574:7: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2574:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2575:8: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2578:14: call_function: calling ‘_gdk_x11_window_get_toplevel’ from ‘gdk_x11_window_set_urgency_hint’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2578:14: return_function: returning to ‘gdk_x11_window_set_urgency_hint’ from ‘_gdk_x11_window_get_toplevel’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:2579:3: danger: dereference of NULL ‘_gdk_x11_window_get_toplevel(window)’
# 2577|
# 2578| toplevel = _gdk_x11_window_get_toplevel (window);
# 2579|-> toplevel->urgency_hint = urgent;
# 2580|
# 2581| update_wm_hints (window, FALSE);
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:3861:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 3859| toplevel = _gdk_x11_window_get_toplevel (window);
# 3860|
# 3861|-> if (toplevel->icon_pixmap != NULL)
# 3862| {
# 3863| cairo_surface_destroy (toplevel->icon_pixmap);
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:4473:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 4471| toplevel = _gdk_x11_window_get_toplevel (window);
# 4472|
# 4473|-> return toplevel->group_leader;
# 4474| }
# 4475|
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:4496:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:4477:1: enter_function: entry to ‘gdk_x11_window_set_group’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:4482:3: branch_false: following ‘false’ branch (when ‘window’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:4482:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:4482:3: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:4483:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:4483:3: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:4484:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:4486:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:4486:7: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:4486:7: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:4491:14: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:4491:14: call_function: calling ‘_gdk_x11_window_get_toplevel’ from ‘gdk_x11_window_set_group’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:4491:14: return_function: returning to ‘gdk_x11_window_set_group’ from ‘_gdk_x11_window_get_toplevel’
gtk-3.24.49/redhat-linux-build/../gdk/x11/gdkwindow-x11.c:4496:7: danger: dereference of NULL ‘_gdk_x11_window_get_toplevel(window)’
# 4494| leader = gdk_display_get_default_group (gdk_window_get_display (window));
# 4495|
# 4496|-> if (toplevel->group_leader != leader)
# 4497| {
# 4498| if (toplevel->group_leader)
Error: GCC_ANALYZER_WARNING (CWE-688):
gtk-3.24.49/redhat-linux-build/../gtk/a11y/gtkimageaccessible.c:140:10: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gtk-3.24.49/redhat-linux-build/../gtk/a11y/gtkimageaccessible.c:139:6: branch_true: following ‘true’ branch (when ‘__result != 0’)...
gtk-3.24.49/redhat-linux-build/../gtk/a11y/gtkimageaccessible.c:140:10: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/a11y/gtkimageaccessible.c:140:10: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
# 138| name = g_strdup (icon_name);
# 139| if (g_str_has_suffix (name, "-symbolic"))
# 140|-> name[strlen (name) - strlen ("-symbolic")] = '\0';
# 141|
# 142| for (i = 0; i < G_N_ELEMENTS (name_map); i++)
Error: GCC_ANALYZER_WARNING (CWE-688):
gtk-3.24.49/redhat-linux-build/../gtk/a11y/gtkimageaccessible.c:144:11: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gtk-3.24.49/redhat-linux-build/../gtk/a11y/gtkimageaccessible.c:139:6: branch_false: following ‘false’ branch (when ‘__result == 0’)...
<unknown>: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/a11y/gtkimageaccessible.c:142:15: branch_true: following ‘true’ branch (when ‘i != 76’)...
gtk-3.24.49/redhat-linux-build/../gtk/a11y/gtkimageaccessible.c:144:11: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/a11y/gtkimageaccessible.c:144:11: danger: argument 1 (‘<unknown>’) NULL where non-null expected
# 142| for (i = 0; i < G_N_ELEMENTS (name_map); i++)
# 143| {
# 144|-> if (g_str_equal (name, name_map[i].name))
# 145| {
# 146| label = g_dpgettext2 (GETTEXT_PACKAGE, "Stock label", name_map[i].label);
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/deprecated/gtkcolorsel.c:2931:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
gtk-3.24.49/redhat-linux-build/../gtk/deprecated/gtkcolorsel.c:2913:1: enter_function: entry to ‘gtk_color_selection_palette_from_string’
gtk-3.24.49/redhat-linux-build/../gtk/deprecated/gtkcolorsel.c:2931:11: danger: dereference of NULL ‘p’
# 2929| while (TRUE)
# 2930| {
# 2931|-> if (*p == ':' || *p == '\0')
# 2932| {
# 2933| gboolean done = TRUE;
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtk-builder-tool.c:55:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
gtk-3.24.49/redhat-linux-build/../gtk/gtk-builder-tool.c:149:1: enter_function: entry to ‘property_is_boolean’
gtk-3.24.49/redhat-linux-build/../gtk/gtk-builder-tool.c:155:11: call_function: calling ‘get_property_pspec’ from ‘property_is_boolean’
# 53| gchar *p;
# 54|
# 55|-> for (p = key; *p != 0; p++)
# 56| {
# 57| gchar c = *p;
Error: GCC_ANALYZER_WARNING (CWE-688):
gtk-3.24.49/redhat-linux-build/../gtk/gtk-builder-tool.c:217:11: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gtk-3.24.49/redhat-linux-build/../gtk/gtk-builder-tool.c:181:1: enter_function: entry to ‘needs_explicit_setting’
gtk-3.24.49/redhat-linux-build/../gtk/gtk-builder-tool.c:214:15: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtk-builder-tool.c:216:11: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtk-builder-tool.c:216:10: branch_true: following ‘true’ branch (when the strings are equal)...
gtk-3.24.49/redhat-linux-build/../gtk/gtk-builder-tool.c:217:11: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtk-builder-tool.c:217:11: danger: argument 1 (‘<unknown>’) NULL where non-null expected
# 215| {
# 216| if (strcmp (class_name, props[k].class) == 0 &&
# 217|-> strcmp (canonical_name, props[k].property) == 0 &&
# 218| data->packing == props[k].packing)
# 219| {
Error: GCC_ANALYZER_WARNING (CWE-688):
gtk-3.24.49/redhat-linux-build/../gtk/gtk-launch.c:129:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gtk-3.24.49/redhat-linux-build/../gtk/gtk-launch.c:48:1: enter_function: entry to ‘main’
gtk-3.24.49/redhat-linux-build/../gtk/gtk-launch.c:90:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtk-launch.c:100:7: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtk-launch.c:100:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtk-launch.c:109:7: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtk-launch.c:109:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtk-launch.c:121:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtk-launch.c:126:6: branch_true: following ‘true’ branch (when ‘__result != 0’)...
gtk-3.24.49/redhat-linux-build/../gtk/gtk-launch.c:128:27: call_function: inlined call to ‘g_strdup_inline’ from ‘main’
gtk-3.24.49/redhat-linux-build/../gtk/gtk-launch.c:129:16: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
# 127| {
# 128| desktop_file_name = g_strdup (app_name);
# 129|-> bus_name[strlen (bus_name) - strlen(".desktop")] = '\0';
# 130| }
# 131| else
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkaccelmap.c:325:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gtk/gtkaccelmap.c:507:1: enter_function: entry to ‘accel_map_parse_accel_path’
gtk-3.24.49/redhat-linux-build/../gtk/gtkaccelmap.c:515:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkaccelmap.c:519:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkaccelmap.c:520:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkaccelmap.c:528:10: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkaccelmap.c:537:3: call_function: calling ‘gtk_accel_map_change_entry’ from ‘accel_map_parse_accel_path’
# 323| gtk_accel_map_add_entry (accel_path, 0, 0);
# 324| entry = accel_path_lookup (accel_path);
# 325|-> entry->accel_key = accel_key;
# 326| entry->accel_mods = accel_mods;
# 327| entry->changed = TRUE;
Error: GCC_ANALYZER_WARNING (CWE-688):
gtk-3.24.49/redhat-linux-build/../gtk/gtkactionmuxer.c:350:19: warning[-Wanalyzer-null-argument]: use of NULL ‘action_and_target’ where non-null expected
gtk-3.24.49/redhat-linux-build/../gtk/gtkactionmuxer.c:907:1: enter_function: entry to ‘gtk_action_muxer_set_primary_accel’
gtk-3.24.49/redhat-linux-build/../gtk/gtkactionmuxer.c:914:6: branch_true: following ‘true’ branch (when ‘primary_accel’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkactionmuxer.c:915:79: call_function: inlined call to ‘g_strdup_inline’ from ‘gtk_action_muxer_set_primary_accel’
gtk-3.24.49/redhat-linux-build/../gtk/gtkactionmuxer.c:919:3: call_function: calling ‘gtk_action_muxer_primary_accel_changed’ from ‘gtk_action_muxer_set_primary_accel’
# 348|
# 349| if (!action_name)
# 350|-> action_name = strrchr (action_and_target, '|') + 1;
# 351|
# 352| action = g_hash_table_lookup (muxer->observed_actions, action_name);
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:538:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:815:1: enter_function: entry to ‘_gtk_builder_apply_properties’
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:825:3: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:826:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:826:3: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:829:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:829:3: call_function: calling ‘gtk_builder_get_parameters’ from ‘_gtk_builder_apply_properties’
# 536| prop->text->str, ¶meter.value, &error))
# 537| {
# 538|-> g_warning ("Failed to set property %s.%s to %s: %s",
# 539| g_type_name (object_type), prop->pspec->name, prop->text->str,
# 540| error->message);
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2617:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2612:11: release_memory: ‘error’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2616:6: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2617:5: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2617:5: release_memory: ‘error’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2617:5: danger: dereference of NULL ‘error’
# 2615| builder = gtk_builder_new ();
# 2616| if (!gtk_builder_add_from_file (builder, filename, &error))
# 2617|-> g_error ("failed to add UI: %s", error->message);
# 2618|
# 2619| return builder;
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2644:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2639:11: release_memory: ‘error’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2643:6: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2644:5: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2644:5: release_memory: ‘error’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2644:5: danger: dereference of NULL ‘error’
# 2642| builder = gtk_builder_new ();
# 2643| if (!gtk_builder_add_from_resource (builder, resource_path, &error))
# 2644|-> g_error ("failed to add UI: %s", error->message);
# 2645|
# 2646| return builder;
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2677:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2672:11: release_memory: ‘error’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2676:6: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2677:5: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2677:5: release_memory: ‘error’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilder.c:2677:5: danger: dereference of NULL ‘error’
# 2675| builder = gtk_builder_new ();
# 2676| if (!gtk_builder_add_from_string (builder, string, length, &error))
# 2677|-> g_error ("failed to add UI: %s", error->message);
# 2678|
# 2679| return builder;
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:528:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info’
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1005:1: enter_function: entry to ‘end_element’
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1020:6: branch_false: following ‘false’ branch (when the strings are non-equal)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1044:12: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1044:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1047:12: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1051:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1055:12: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1055:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1056:12: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1055:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1091:12: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1091:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1120:12: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1120:11: branch_true: following ‘true’ branch (when the strings are equal)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1122:31: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1122:31: call_function: calling ‘state_pop’ from ‘end_element’
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1122:31: return_function: returning to ‘end_element’ from ‘state_pop’
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1126:7: call_function: calling ‘free_child_info’ from ‘end_element’
# 526| free_child_info (ChildInfo *info)
# 527| {
# 528|-> g_free (info->type);
# 529| g_free (info->internal_child);
# 530| g_slice_free (ChildInfo, info);
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1028:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1005:1: enter_function: entry to ‘end_element’
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1020:6: branch_true: following ‘true’ branch (when the strings are equal)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1022:32: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1022:32: call_function: calling ‘state_pop’ from ‘end_element’
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1022:32: return_function: returning to ‘end_element’ from ‘state_pop’
gtk-3.24.49/redhat-linux-build/../gtk/gtkbuilderparser.c:1028:20: danger: dereference of NULL ‘state_pop(user_data)’
# 1026| * to check thier library versions here.
# 1027| */
# 1028|-> if (!strcmp (req_info->library, "gtk+"))
# 1029| {
# 1030| if (!GTK_CHECK_VERSION (req_info->major, req_info->minor, 0))
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:960:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:953:1: enter_function: entry to ‘selection_received’
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:957:39: call_function: calling ‘get_request_contents_info’ from ‘selection_received’
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:957:39: return_function: returning to ‘selection_received’ from ‘get_request_contents_info’
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:958:3: call_function: calling ‘set_request_contents_info’ from ‘selection_received’
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:958:3: return_function: returning to ‘selection_received’ from ‘set_request_contents_info’
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:960:3: danger: dereference of NULL ‘get_request_contents_info(widget)’
# 958| set_request_contents_info (widget, NULL);
# 959|
# 960|-> request_info->callback (gtk_widget_get_clipboard (widget, gtk_selection_data_get_selection (selection_data)),
# 961| selection_data,
# 962| request_info->user_data);
Error: GCC_ANALYZER_WARNING (CWE-457):
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:1563:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘results.format’
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:1535:1: enter_function: entry to ‘gtk_clipboard_wait_for_rich_text’
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:1542:3: branch_true: following ‘true’ branch (when ‘clipboard’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:1543:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:1543:3: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:1543:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:1544:3: branch_true: following ‘true’ branch (when ‘format’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:1545:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:1545:3: branch_true: following ‘true’ branch (when ‘length’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:1547:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:1550:3: call_function: calling ‘gtk_clipboard_request_rich_text’ from ‘gtk_clipboard_wait_for_rich_text’
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:1550:3: return_function: returning to ‘gtk_clipboard_wait_for_rich_text’ from ‘gtk_clipboard_request_rich_text’
gtk-3.24.49/redhat-linux-build/../gtk/gtkclipboard.c:1563:13: danger: use of uninitialized value ‘results.format’ here
# 1561| g_main_loop_unref (results.loop);
# 1562|
# 1563|-> *format = results.format;
# 1564| *length = results.length;
# 1565|
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkcsscolorvalue.c:532:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘color2’
gtk-3.24.49/redhat-linux-build/../gtk/gtkcsscolorvalue.c:639:1: enter_function: entry to ‘_gtk_css_color_value_parse_function’
gtk-3.24.49/redhat-linux-build/../gtk/gtkcsscolorvalue.c:646:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkcsscolorvalue.c:652:6: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkcsscolorvalue.c:652:6: branch_false: following ‘false’ branch (when ‘color > 1’)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkcsscolorvalue.c:704:11: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkcsscolorvalue.c:704:11: branch_false: following ‘false’ branch (when ‘color != 7’)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkcsscolorvalue.c:712:16: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkcsscolorvalue.c:712:16: call_function: calling ‘_gtk_css_color_value_parse’ from ‘_gtk_css_color_value_parse_function’
# 530|
# 531| gtk_internal_return_val_if_fail (color1->class == >K_CSS_VALUE_COLOR, NULL);
# 532|-> gtk_internal_return_val_if_fail (color2->class == >K_CSS_VALUE_COLOR, NULL);
# 533|
# 534| value = _gtk_css_value_new (GtkCssValue, >K_CSS_VALUE_COLOR);
Error: GCC_ANALYZER_WARNING (CWE-457):
gtk-3.24.49/redhat-linux-build/../gtk/gtkcssselector.c:197:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*b.class’
gtk-3.24.49/redhat-linux-build/../gtk/gtkcssselector.c:1897:1: enter_function: entry to ‘_gtk_css_selector_tree_builder_build’
gtk-3.24.49/redhat-linux-build/../gtk/gtkcssselector.c:1907:3: call_function: calling ‘subdivide_infos’ from ‘_gtk_css_selector_tree_builder_build’
# 195| gtk_css_selector_compare_one (const GtkCssSelector *a, const GtkCssSelector *b)
# 196| {
# 197|-> if (a->class != b->class)
# 198| return strcmp (a->class->name, b->class->name);
# 199| else
Error: GCC_ANALYZER_WARNING (CWE-465):
gtk-3.24.49/redhat-linux-build/../gtk/gtkcssselector.c:1460:8: warning[-Wanalyzer-deref-before-check]: check of ‘selector’ for NULL after already dereferencing it
gtk-3.24.49/redhat-linux-build/../gtk/gtkcssselector.c:1897:1: enter_function: entry to ‘_gtk_css_selector_tree_builder_build’
gtk-3.24.49/redhat-linux-build/../gtk/gtkcssselector.c:1907:3: call_function: calling ‘subdivide_infos’ from ‘_gtk_css_selector_tree_builder_build’
# 1458|
# 1459| for (;
# 1460|-> selector && selector->class->is_simple;
# 1461| selector = gtk_css_selector_previous (selector))
# 1462| {
Error: GCC_ANALYZER_WARNING (CWE-465):
gtk-3.24.49/redhat-linux-build/../gtk/gtkcssselector.c:1475:8: warning[-Wanalyzer-deref-before-check]: check of ‘selector’ for NULL after already dereferencing it
gtk-3.24.49/redhat-linux-build/../gtk/gtkcssselector.c:1897:1: enter_function: entry to ‘_gtk_css_selector_tree_builder_build’
gtk-3.24.49/redhat-linux-build/../gtk/gtkcssselector.c:1907:3: call_function: calling ‘subdivide_infos’ from ‘_gtk_css_selector_tree_builder_build’
# 1473|
# 1474| for (;
# 1475|-> selector && selector->class->is_simple;
# 1476| selector = gtk_css_selector_previous (selector))
# 1477| {
Error: GCC_ANALYZER_WARNING (CWE-457):
gtk-3.24.49/redhat-linux-build/../gtk/gtkcssselector.c:1788:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘max_selector’
gtk-3.24.49/redhat-linux-build/../gtk/gtkcssselector.c:1897:1: enter_function: entry to ‘_gtk_css_selector_tree_builder_build’
gtk-3.24.49/redhat-linux-build/../gtk/gtkcssselector.c:1907:3: call_function: calling ‘subdivide_infos’ from ‘_gtk_css_selector_tree_builder_build’
# 1786| tree = alloc_tree (array, &tree_offset);
# 1787| tree->parent_offset = parent_offset;
# 1788|-> tree->selector = max_selector;
# 1789|
# 1790| exact_matches = NULL;
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkemojicompletion.c:216:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘last’
gtk-3.24.49/redhat-linux-build/../gtk/gtkemojicompletion.c:329:1: enter_function: entry to ‘entry_key_press’
gtk-3.24.49/redhat-linux-build/../gtk/gtkemojicompletion.c:335:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkemojicompletion.c:338:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkemojicompletion.c:362:7: call_function: calling ‘move_active_row’ from ‘entry_key_press’
# 214| completion->active = children->data;
# 215| else
# 216|-> completion->active = last->data;
# 217| }
# 218|
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:260:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘child’
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:293:1: enter_function: entry to ‘gtk_fixed_move’
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:298:3: call_function: inlined call to ‘get_child’ from ‘gtk_fixed_move’
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:298:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:298:3: call_function: calling ‘gtk_fixed_move_internal’ from ‘gtk_fixed_move’
# 258| {
# 259| g_return_if_fail (GTK_IS_FIXED (fixed));
# 260|-> g_return_if_fail (gtk_widget_get_parent (child->widget) == GTK_WIDGET (fixed));
# 261|
# 262| gtk_widget_freeze_child_notify (child->widget);
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:316:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:302:1: enter_function: entry to ‘gtk_fixed_set_child_property’
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:311:17: call_function: inlined call to ‘get_child’ from ‘gtk_fixed_set_child_property’
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:313:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:316:7: danger: dereference of NULL ‘<unknown>’
# 314| {
# 315| case CHILD_PROP_X:
# 316|-> gtk_fixed_move_internal (fixed,
# 317| fixed_child,
# 318| g_value_get_int (value),
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:322:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:302:1: enter_function: entry to ‘gtk_fixed_set_child_property’
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:311:17: call_function: inlined call to ‘get_child’ from ‘gtk_fixed_set_child_property’
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:313:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:322:7: danger: dereference of NULL ‘<unknown>’
# 320| break;
# 321| case CHILD_PROP_Y:
# 322|-> gtk_fixed_move_internal (fixed,
# 323| fixed_child,
# 324| fixed_child->x,
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:347:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:334:1: enter_function: entry to ‘gtk_fixed_get_child_property’
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:342:17: call_function: inlined call to ‘get_child’ from ‘gtk_fixed_get_child_property’
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:344:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:347:7: danger: dereference of NULL ‘<unknown>’
# 345| {
# 346| case CHILD_PROP_X:
# 347|-> g_value_set_int (value, fixed_child->x);
# 348| break;
# 349| case CHILD_PROP_Y:
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:350:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:334:1: enter_function: entry to ‘gtk_fixed_get_child_property’
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:342:17: call_function: inlined call to ‘get_child’ from ‘gtk_fixed_get_child_property’
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:344:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkfixed.c:350:7: danger: dereference of NULL ‘<unknown>’
# 348| break;
# 349| case CHILD_PROP_Y:
# 350|-> g_value_set_int (value, fixed_child->y);
# 351| break;
# 352| default:
Error: GCC_ANALYZER_WARNING (CWE-835):
gtk-3.24.49/redhat-linux-build/../gtk/gtkflowbox.c:1243:13: warning[-Wanalyzer-infinite-loop]: infinite loop
gtk-3.24.49/redhat-linux-build/../gtk/gtkflowbox.c:1243:13: danger: infinite loop here
gtk-3.24.49/redhat-linux-build/../gtk/gtkflowbox.c:1243:14: branch_false: if it ever follows ‘false’ branch, it will always do so...
gtk-3.24.49/redhat-linux-build/../gtk/gtkflowbox.c:1252:10: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkflowbox.c:1252:10: branch_false: when ‘child’ is NULL: always following ‘false’ branch...
<unknown>: branch_false: ...to here
# 1241| {
# 1242| i = 0;
# 1243|-> while (i < BOX_PRIV (box)->cur_children_per_line)
# 1244| {
# 1245| if (g_sequence_iter_is_begin (iter))
Error: GCC_ANALYZER_WARNING (CWE-835):
gtk-3.24.49/redhat-linux-build/../gtk/gtkflowbox.c:1269:13: warning[-Wanalyzer-infinite-loop]: infinite loop
gtk-3.24.49/redhat-linux-build/../gtk/gtkflowbox.c:1269:13: danger: infinite loop here
gtk-3.24.49/redhat-linux-build/../gtk/gtkflowbox.c:1269:14: branch_false: if it ever follows ‘false’ branch, it will always do so...
gtk-3.24.49/redhat-linux-build/../gtk/gtkflowbox.c:1278:10: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkflowbox.c:1278:10: branch_false: when ‘child’ is NULL: always following ‘false’ branch...
<unknown>: branch_false: ...to here
# 1267| {
# 1268| i = 0;
# 1269|-> while (i < BOX_PRIV (box)->cur_children_per_line)
# 1270| {
# 1271| iter = g_sequence_iter_next (iter);
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkgesture.c:1486:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gtk/gtkgesture.c:1472:1: enter_function: entry to ‘gtk_gesture_get_bounding_box_center’
gtk-3.24.49/redhat-linux-build/../gtk/gtkgesture.c:1480:3: branch_false: following ‘false’ branch (when ‘gesture’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkgesture.c:1480:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkgesture.c:1481:3: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkgesture.c:1483:14: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkgesture.c:1483:14: call_function: calling ‘gtk_gesture_get_last_updated_sequence’ from ‘gtk_gesture_get_bounding_box_center’
gtk-3.24.49/redhat-linux-build/../gtk/gtkgesture.c:1483:14: return_function: returning to ‘gtk_gesture_get_bounding_box_center’ from ‘gtk_gesture_get_last_updated_sequence’
gtk-3.24.49/redhat-linux-build/../gtk/gtkgesture.c:1484:16: call_function: calling ‘gtk_gesture_get_last_event’ from ‘gtk_gesture_get_bounding_box_center’
gtk-3.24.49/redhat-linux-build/../gtk/gtkgesture.c:1484:16: return_function: returning to ‘gtk_gesture_get_bounding_box_center’ from ‘gtk_gesture_get_last_event’
gtk-3.24.49/redhat-linux-build/../gtk/gtkgesture.c:1486:7: danger: dereference of NULL ‘gtk_gesture_get_last_event(gesture, gtk_gesture_get_last_updated_sequence(gesture))’
# 1484| last_event = gtk_gesture_get_last_event (gesture, sequence);
# 1485|
# 1486|-> if (EVENT_IS_TOUCHPAD_GESTURE (last_event))
# 1487| return gtk_gesture_get_point (gesture, sequence, x, y);
# 1488| else if (!gtk_gesture_get_bounding_box (gesture, &rect))
Error: GCC_ANALYZER_WARNING (CWE-688):
gtk-3.24.49/redhat-linux-build/../gtk/gtklabel.c:4453:14: warning[-Wanalyzer-null-argument]: use of NULL ‘str’ where non-null expected
gtk-3.24.49/redhat-linux-build/../gtk/gtklabel.c:6878:1: enter_function: entry to ‘gtk_label_set_track_visited_links’
gtk-3.24.49/redhat-linux-build/../gtk/gtklabel.c:6889:6: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtklabel.c:6891:7: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtklabel.c:6894:7: call_function: calling ‘gtk_label_recalculate’ from ‘gtk_label_set_track_visited_links’
#argument 1 of ‘__builtin_strlen’ must be non-null
# 4451|
# 4452| *accel_key = GDK_KEY_VoidSymbol;
# 4453|-> *new_str = g_new (gchar, strlen (str) + 1);
# 4454| *pattern = g_new (gchar, g_utf8_strlen (str, -1) + 1);
# 4455|
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtklayout.c:824:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gtk/gtklayout.c:811:1: enter_function: entry to ‘gtk_layout_get_child_property’
gtk-3.24.49/redhat-linux-build/../gtk/gtklayout.c:819:18: call_function: inlined call to ‘get_child’ from ‘gtk_layout_get_child_property’
gtk-3.24.49/redhat-linux-build/../gtk/gtklayout.c:821:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtklayout.c:824:7: danger: dereference of NULL ‘<unknown>’
# 822| {
# 823| case CHILD_PROP_X:
# 824|-> g_value_set_int (value, layout_child->x);
# 825| break;
# 826| case CHILD_PROP_Y:
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtklayout.c:827:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gtk/gtklayout.c:811:1: enter_function: entry to ‘gtk_layout_get_child_property’
gtk-3.24.49/redhat-linux-build/../gtk/gtklayout.c:819:18: call_function: inlined call to ‘get_child’ from ‘gtk_layout_get_child_property’
gtk-3.24.49/redhat-linux-build/../gtk/gtklayout.c:821:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtklayout.c:827:7: danger: dereference of NULL ‘<unknown>’
# 825| break;
# 826| case CHILD_PROP_Y:
# 827|-> g_value_set_int (value, layout_child->y);
# 828| break;
# 829| default:
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkmain.c:1728:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘event’
gtk-3.24.49/redhat-linux-build/../gtk/gtkmain.c:1691:1: enter_function: entry to ‘gtk_main_do_event’
gtk-3.24.49/redhat-linux-build/../gtk/gtkmain.c:1719:18: call_function: calling ‘gtk_get_event_widget’ from ‘gtk_main_do_event’
gtk-3.24.49/redhat-linux-build/../gtk/gtkmain.c:1719:18: return_function: returning to ‘gtk_main_do_event’ from ‘gtk_get_event_widget’
gtk-3.24.49/redhat-linux-build/../gtk/gtkmain.c:1720:6: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkmain.c:1728:11: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkmain.c:1728:11: danger: dereference of NULL ‘event’
# 1726| * them specially
# 1727| */
# 1728|-> if (event->type == GDK_PROPERTY_NOTIFY)
# 1729| _gtk_selection_incr_event (event->any.window,
# 1730| &event->property);
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkmountoperation-x11.c:859:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gtk/gtkmountoperation-x11.c:837:1: enter_function: entry to ‘get_name_for_window_with_pid’
gtk-3.24.49/redhat-linux-build/../gtk/gtkmountoperation-x11.c:847:6: branch_true: following ‘true’ branch (when ‘window == 0’)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkmountoperation-x11.c:852:24: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkmountoperation-x11.c:852:24: call_function: calling ‘pid_get_env’ from ‘get_name_for_window_with_pid’
gtk-3.24.49/redhat-linux-build/../gtk/gtkmountoperation-x11.c:852:24: return_function: returning to ‘get_name_for_window_with_pid’ from ‘pid_get_env’
gtk-3.24.49/redhat-linux-build/../gtk/gtkmountoperation-x11.c:853:10: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkmountoperation-x11.c:857:11: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkmountoperation-x11.c:857:11: release_memory: ‘endp’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtkmountoperation-x11.c:859:15: release_memory: ‘endp’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtkmountoperation-x11.c:859:14: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkmountoperation-x11.c:859:31: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkmountoperation-x11.c:859:31: danger: dereference of NULL ‘0’
# 857| endp = NULL;
# 858| windowid_window = (Window) g_ascii_strtoll (windowid_value, &endp, 10);
# 859|-> if (endp != NULL || *endp == '\0')
# 860| {
# 861| window = windowid_window;
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:721:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘line’
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:701:19: branch_false: following ‘false’ branch (when ‘l’ is NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:709:6: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:709:6: branch_false: following ‘false’ branch (when ‘count >= 0’)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:721:26: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:721:26: danger: dereference of NULL ‘line’
# 719| else
# 720| {
# 721|-> line_pos = index - line->start_index;
# 722|
# 723| len = g_slist_length (lines);
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:728:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘l’
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:701:19: branch_true: following ‘true’ branch (when ‘l’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:703:7: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:704:10: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:706:7: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:701:19: branch_false: following ‘false’ branch (when ‘l’ is NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:709:6: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:709:6: branch_false: following ‘false’ branch (when ‘count >= 0’)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:721:26: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:725:10: branch_false: following ‘false’ branch (when ‘len > num’)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:725:11: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkpango.c:728:7: danger: dereference of NULL ‘l’
# 726| return g_utf8_strlen (text, -1) - 1;
# 727|
# 728|-> line = l->data;
# 729| pos = line->start_index + line_pos;
# 730| if (pos >= line->start_index + line->length)
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:367:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘size’
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:965:1: enter_function: entry to ‘gtk_paper_size_new_from_key_file’
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:977:3: branch_true: following ‘true’ branch (when ‘key_file’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:979:6: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:979:6: branch_false: following ‘false’ branch (when ‘group_name’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:981:23: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:981:7: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:998:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:998:3: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:999:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:999:3: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:1003:10: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:1013:6: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:1017:47: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:1014:18: call_function: calling ‘gtk_paper_size_new_from_ppd’ from ‘gtk_paper_size_new_from_key_file’
# 365| out:
# 366|
# 367|-> if (size->info == NULL ||
# 368| size->info->ppd_name == -1 ||
# 369| strcmp (paper_names + size->info->ppd_name, ppd_name) != 0)
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:463:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:399:1: enter_function: entry to ‘gtk_paper_size_new_from_ipp’
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:412:15: branch_true: following ‘true’ branch (when ‘i != 182’)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:414:11: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:414:10: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:415:30: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:462:10: call_function: calling ‘gtk_paper_size_new_custom’ from ‘gtk_paper_size_new_from_ipp’
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:462:10: return_function: returning to ‘gtk_paper_size_new_from_ipp’ from ‘gtk_paper_size_new_custom’
gtk-3.24.49/redhat-linux-build/../gtk/gtkpapersize.c:463:3: danger: dereference of NULL ‘gtk_paper_size_new_custom(ipp_name, display_name, width, height, 1)’
# 461|
# 462| size = gtk_paper_size_new_custom (ipp_name, display_name, width, height, GTK_UNIT_POINTS);
# 463|-> size->is_custom = !found;
# 464| size->is_ipp = found;
# 465|
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkpathbar.c:988:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘down_button’
gtk-3.24.49/redhat-linux-build/../gtk/gtkpathbar.c:978:44: branch_false: following ‘false’ branch (when ‘list’ is NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkpathbar.c:987:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkpathbar.c:993:3: release_memory: ‘down_button’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtkpathbar.c:993:3: release_memory: ‘down_button’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtkpathbar.c:988:30: danger: dereference of NULL ‘down_button’
# 986|
# 987| gtk_widget_get_allocation (GTK_WIDGET (path_bar), &allocation);
# 988|-> gtk_widget_get_allocation (BUTTON_DATA (down_button->data)->button, &button_allocation);
# 989|
# 990| space_available = (allocation.width
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkpathbar.c:1103:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘up_button’
# 1101| if ((!gtk_widget_is_sensitive (path_bar->priv->up_slider_button)) ||
# 1102| (!gtk_widget_get_child_visible (path_bar->priv->up_slider_button)))
# 1103|-> gtk_widget_grab_focus (BUTTON_DATA (up_button->data)->button);
# 1104|
# 1105| return FALSE;
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkpathbar.c:1131:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘down_button’
gtk-3.24.49/redhat-linux-build/../gtk/gtkpathbar.c:1119:44: branch_false: following ‘false’ branch (when ‘list’ is NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkpathbar.c:1129:34: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkpathbar.c:1131:28: danger: dereference of NULL ‘down_button’
# 1129| if ((!gtk_widget_is_sensitive (path_bar->priv->down_slider_button)) ||
# 1130| (!gtk_widget_get_child_visible (path_bar->priv->down_slider_button)))
# 1131|-> gtk_widget_grab_focus (BUTTON_DATA (down_button->data)->button);
# 1132|
# 1133| return FALSE;
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:728:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘node’
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:716:1: enter_function: entry to ‘_gtk_rbtree_column_invalid’
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:720:6: branch_false: following ‘false’ branch (when ‘tree’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:723:10: call_function: inlined call to ‘_gtk_rbtree_first’ from ‘_gtk_rbtree_column_invalid’
<unknown>: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:727:10: branch_true: following ‘true’ branch (when ‘node’ is NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:728:9: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:728:9: danger: dereference of NULL ‘node’
# 726| {
# 727| if (! (GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_INVALID)))
# 728|-> GTK_RBNODE_SET_FLAG (node, GTK_RBNODE_COLUMN_INVALID);
# 729| GTK_RBNODE_SET_FLAG (node, GTK_RBNODE_DESCENDANTS_INVALID);
# 730|
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:749:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘node’
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:738:1: enter_function: entry to ‘_gtk_rbtree_mark_invalid’
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:742:6: branch_false: following ‘false’ branch (when ‘tree’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:745:10: call_function: inlined call to ‘_gtk_rbtree_first’ from ‘_gtk_rbtree_mark_invalid’
<unknown>: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:749:7: danger: dereference of NULL ‘node’
# 747| do
# 748| {
# 749|-> GTK_RBNODE_SET_FLAG (node, GTK_RBNODE_INVALID);
# 750| GTK_RBNODE_SET_FLAG (node, GTK_RBNODE_DESCENDANTS_INVALID);
# 751|
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:779:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘node’
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:759:1: enter_function: entry to ‘_gtk_rbtree_set_fixed_height’
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:765:6: branch_false: following ‘false’ branch (when ‘tree’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:768:10: call_function: inlined call to ‘_gtk_rbtree_first’ from ‘_gtk_rbtree_set_fixed_height’
<unknown>: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:772:11: branch_false: following ‘false’ branch (when ‘node’ is NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:779:11: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkrbtree.c:779:11: danger: dereference of NULL ‘node’
# 777| }
# 778|
# 779|-> if (node->children)
# 780| _gtk_rbtree_set_fixed_height (node->children, height, mark_valid);
# 781| }
Error: GCC_ANALYZER_WARNING (CWE-457):
gtk-3.24.49/redhat-linux-build/../gtk/gtkscrolledwindow.c:3397:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘child_allocation.x’
gtk-3.24.49/redhat-linux-build/../gtk/gtkscrolledwindow.c:3331:1: enter_function: entry to ‘gtk_scrolled_window_allocate_scrollbar’
gtk-3.24.49/redhat-linux-build/../gtk/gtkscrolledwindow.c:3342:3: call_function: calling ‘gtk_scrolled_window_inner_allocation’ from ‘gtk_scrolled_window_allocate_scrollbar’
gtk-3.24.49/redhat-linux-build/../gtk/gtkscrolledwindow.c:3342:3: return_function: returning to ‘gtk_scrolled_window_allocate_scrollbar’ from ‘gtk_scrolled_window_inner_allocation’
gtk-3.24.49/redhat-linux-build/../gtk/gtkscrolledwindow.c:3343:16: call_function: calling ‘_gtk_scrolled_window_get_scrollbar_spacing’ from ‘gtk_scrolled_window_allocate_scrollbar’
gtk-3.24.49/redhat-linux-build/../gtk/gtkscrolledwindow.c:3343:16: return_function: returning to ‘gtk_scrolled_window_allocate_scrollbar’ from ‘_gtk_scrolled_window_get_scrollbar_spacing’
gtk-3.24.49/redhat-linux-build/../gtk/gtkscrolledwindow.c:3347:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkscrolledwindow.c:3370:25: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkscrolledwindow.c:3370:11: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkscrolledwindow.c:3397:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkscrolledwindow.c:3397:3: danger: use of uninitialized value ‘child_allocation.x’ here
# 3395| }
# 3396|
# 3397|-> *allocation = child_allocation;
# 3398| }
# 3399|
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1529:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1701:1: enter_function: entry to ‘gtk_selection_data_get_text’
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1705:3: branch_true: following ‘true’ branch (when ‘selection_data’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1707:3: call_function: inlined call to ‘init_atoms’ from ‘gtk_selection_data_get_text’
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1709:7: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1711:8: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1710:8: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1712:8: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1710:7: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1729:11: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1729:11: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1730:13: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1734:16: call_function: calling ‘selection_get_text_plain’ from ‘gtk_selection_data_get_text’
# 1527| while (1)
# 1528| {
# 1529|-> if (*p == '\r')
# 1530| {
# 1531| p++;
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1572:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1553:11: release_memory: ‘error’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1556:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1558:12: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1558:11: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1561:7: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1561:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1570:6: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1570:6: branch_true: following ‘true’ branch (when ‘result’ is NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1572:7: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1572:7: release_memory: ‘error’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1574:7: release_memory: ‘error’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:1572:7: danger: dereference of NULL ‘error’
# 1570| if (!result)
# 1571| {
# 1572|-> g_warning ("Error converting from %s to %s: %s",
# 1573| "UTF-8", charset, error->message);
# 1574| g_error_free (error);
Error: GCC_ANALYZER_WARNING (CWE-131):
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:2067:9: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:2060:3: branch_true: following ‘true’ branch (when ‘selection_data’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:2062:7: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:2062:6: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:2063:7: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:2062:7: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:2064:7: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:2062:7: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:2066:10: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:2066:10: branch_true: following ‘true’ branch (when ‘targets’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:2067:20: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:2067:9: danger: allocated ‘(unsigned int)*selection_data.length’ bytes and assigned to ‘struct _GdkAtom **’ here; ‘sizeof (GdkAtom {{aka struct _GdkAtom *}})’ is ‘8’
# 2065| {
# 2066| if (targets)
# 2067|-> *targets = g_memdup (selection_data->data, selection_data->length);
# 2068| if (n_atoms)
# 2069| *n_atoms = selection_data->length / sizeof (GdkAtom);
Error: GCC_ANALYZER_WARNING (CWE-131):
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:3299:11: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:3252:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:3280:28: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:3280:11: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:3289:21: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkselection.c:3299:11: danger: allocated and assigned to ‘struct _GdkAtom **’ here; ‘sizeof (GdkAtom {{aka struct _GdkAtom *}})’ is ‘8’
# 3297| /* selection data is always terminated by a trailing \0
# 3298| */
# 3299|-> p = g_malloc (data->length + 1);
# 3300| data->data = (guchar *)p;
# 3301| data->data[data->length] = '\0';
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtksettings.c:2952:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 2950| screen = gdk_window_get_screen (event->window);
# 2951| settings = gtk_settings_get_for_screen (screen);
# 2952|-> pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (settings), event->name);
# 2953|
# 2954| if (!pspec)
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtkshortcutssection.c:743:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘g’
gtk-3.24.49/redhat-linux-build/../gtk/gtkshortcutssection.c:612:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkshortcutssection.c:614:45: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkshortcutssection.c:631:20: branch_true: following ‘true’ branch (when ‘g’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkshortcutssection.c:633:26: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkshortcutssection.c:644:10: branch_true: following ‘true’ branch (when ‘current_column’ is NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkshortcutssection.c:649:20: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkshortcutssection.c:664:14: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkshortcutssection.c:668:22: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkshortcutssection.c:695:6: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkshortcutssection.c:702:16: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkshortcutssection.c:743:12: danger: dereference of NULL ‘g’
# 741| }
# 742|
# 743|-> for (g = g->next; g; g = g->next)
# 744| {
# 745| GtkShortcutsGroup *group = g->data;
Error: GCC_ANALYZER_WARNING (CWE-686):
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:881:7: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘double’ but received ‘GdkRGBA **’ {{aka ‘struct _GdkRGBA **’}} for variadic argument 2 of ‘args’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2607:1: enter_function: entry to ‘gtk_style_context_get_border_color’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2613:3: branch_true: following ‘true’ branch (when ‘color’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2614:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2614:3: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2614:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2616:3: call_function: calling ‘gtk_style_context_get’ from ‘gtk_style_context_get_border_color’ with 3 variadic arguments
# 879| &value);
# 880|
# 881|-> G_VALUE_LCOPY (&value, args, 0, &error);
# 882| g_value_unset (&value);
# 883|
Error: GCC_ANALYZER_WARNING (CWE-686):
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:881:7: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘double’ but received ‘PangoFontDescription **’ {{aka ‘struct _PangoFontDescription **’}} for variadic argument 2 of ‘args’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2765:1: enter_function: entry to ‘gtk_style_context_get_font’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2771:3: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2771:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2775:3: call_function: calling ‘gtk_style_context_get’ from ‘gtk_style_context_get_font’ with 3 variadic arguments
# 879| &value);
# 880|
# 881|-> G_VALUE_LCOPY (&value, args, 0, &error);
# 882| g_value_unset (&value);
# 883|
Error: GCC_ANALYZER_WARNING (CWE-686):
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:881:7: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘double’ but received ‘char (*)[27]’ for variadic argument 3 of ‘args’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2806:1: enter_function: entry to ‘_gtk_style_context_get_cursor_color’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2812:3: call_function: calling ‘gtk_style_context_get’ from ‘_gtk_style_context_get_cursor_color’ with 5 variadic arguments
# 879| &value);
# 880|
# 881|-> G_VALUE_LCOPY (&value, args, 0, &error);
# 882| g_value_unset (&value);
# 883|
Error: GCC_ANALYZER_WARNING (CWE-686):
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:881:7: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘double’ but received ‘void *’ for variadic argument 3 of ‘args’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2765:1: enter_function: entry to ‘gtk_style_context_get_font’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2771:3: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2771:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2775:3: call_function: calling ‘gtk_style_context_get’ from ‘gtk_style_context_get_font’ with 3 variadic arguments
# 879| &value);
# 880|
# 881|-> G_VALUE_LCOPY (&value, args, 0, &error);
# 882| g_value_unset (&value);
# 883|
Error: GCC_ANALYZER_WARNING (CWE-686):
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:881:7: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘GdkRGBA **’ {{aka ‘struct _GdkRGBA **’}} for variadic argument 2 of ‘args’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2607:1: enter_function: entry to ‘gtk_style_context_get_border_color’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2613:3: branch_true: following ‘true’ branch (when ‘color’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2614:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2614:3: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2614:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2616:3: call_function: calling ‘gtk_style_context_get’ from ‘gtk_style_context_get_border_color’ with 3 variadic arguments
# 879| &value);
# 880|
# 881|-> G_VALUE_LCOPY (&value, args, 0, &error);
# 882| g_value_unset (&value);
# 883|
Error: GCC_ANALYZER_WARNING (CWE-686):
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:881:7: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘PangoFontDescription **’ {{aka ‘struct _PangoFontDescription **’}} for variadic argument 2 of ‘args’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2765:1: enter_function: entry to ‘gtk_style_context_get_font’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2771:3: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2771:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2775:3: call_function: calling ‘gtk_style_context_get’ from ‘gtk_style_context_get_font’ with 3 variadic arguments
# 879| &value);
# 880|
# 881|-> G_VALUE_LCOPY (&value, args, 0, &error);
# 882| g_value_unset (&value);
# 883|
Error: GCC_ANALYZER_WARNING (CWE-686):
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:881:7: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘char (*)[27]’ for variadic argument 3 of ‘args’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2806:1: enter_function: entry to ‘_gtk_style_context_get_cursor_color’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2812:3: call_function: calling ‘gtk_style_context_get’ from ‘_gtk_style_context_get_cursor_color’ with 5 variadic arguments
# 879| &value);
# 880|
# 881|-> G_VALUE_LCOPY (&value, args, 0, &error);
# 882| g_value_unset (&value);
# 883|
Error: GCC_ANALYZER_WARNING (CWE-686):
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:881:7: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘void *’ for variadic argument 3 of ‘args’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2765:1: enter_function: entry to ‘gtk_style_context_get_font’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2771:3: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2771:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2775:3: call_function: calling ‘gtk_style_context_get’ from ‘gtk_style_context_get_font’ with 3 variadic arguments
# 879| &value);
# 880|
# 881|-> G_VALUE_LCOPY (&value, args, 0, &error);
# 882| g_value_unset (&value);
# 883|
Error: GCC_ANALYZER_WARNING (CWE-686):
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:881:7: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘GdkRGBA **’ {{aka ‘struct _GdkRGBA **’}} for variadic argument 2 of ‘args’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2607:1: enter_function: entry to ‘gtk_style_context_get_border_color’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2613:3: branch_true: following ‘true’ branch (when ‘color’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2614:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2614:3: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2614:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2616:3: call_function: calling ‘gtk_style_context_get’ from ‘gtk_style_context_get_border_color’ with 3 variadic arguments
# 879| &value);
# 880|
# 881|-> G_VALUE_LCOPY (&value, args, 0, &error);
# 882| g_value_unset (&value);
# 883|
Error: GCC_ANALYZER_WARNING (CWE-686):
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:881:7: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘PangoFontDescription **’ {{aka ‘struct _PangoFontDescription **’}} for variadic argument 2 of ‘args’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2765:1: enter_function: entry to ‘gtk_style_context_get_font’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2771:3: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2771:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2775:3: call_function: calling ‘gtk_style_context_get’ from ‘gtk_style_context_get_font’ with 3 variadic arguments
# 879| &value);
# 880|
# 881|-> G_VALUE_LCOPY (&value, args, 0, &error);
# 882| g_value_unset (&value);
# 883|
Error: GCC_ANALYZER_WARNING (CWE-686):
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:881:7: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘char (*)[27]’ for variadic argument 3 of ‘args’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2806:1: enter_function: entry to ‘_gtk_style_context_get_cursor_color’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2812:3: call_function: calling ‘gtk_style_context_get’ from ‘_gtk_style_context_get_cursor_color’ with 5 variadic arguments
# 879| &value);
# 880|
# 881|-> G_VALUE_LCOPY (&value, args, 0, &error);
# 882| g_value_unset (&value);
# 883|
Error: GCC_ANALYZER_WARNING (CWE-686):
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:881:7: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘void *’ for variadic argument 3 of ‘args’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2765:1: enter_function: entry to ‘gtk_style_context_get_font’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2771:3: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2771:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2775:3: call_function: calling ‘gtk_style_context_get’ from ‘gtk_style_context_get_font’ with 3 variadic arguments
# 879| &value);
# 880|
# 881|-> G_VALUE_LCOPY (&value, args, 0, &error);
# 882| g_value_unset (&value);
# 883|
Error: GCC_ANALYZER_WARNING (CWE-457):
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2818:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pc’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2914:1: enter_function: entry to ‘gtk_render_insertion_cursor’
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2930:3: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2930:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2930:3: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2931:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2931:3: branch_true: following ‘true’ branch (when ‘cr’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2932:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2932:3: branch_false: following ‘false’ branch (when ‘layout’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2932:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2932:3: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2933:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2933:3: branch_true: following ‘true’ branch (when ‘index >= 0’)...
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2935:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkstylecontext.c:2974:3: call_function: calling ‘draw_insertion_cursor’ from ‘gtk_render_insertion_cursor’
# 2816| NULL);
# 2817| if (primary_color)
# 2818|-> *primary_color = *pc;
# 2819|
# 2820| if (secondary_color)
Error: GCC_ANALYZER_WARNING (CWE-688):
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:104:11: warning[-Wanalyzer-null-argument]: use of NULL ‘str’ where non-null expected
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1153:1: enter_function: entry to ‘parse_attr_element’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1165:3: call_function: inlined call to ‘peek_state’ from ‘parse_attr_element’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1165:3: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1167:7: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1167:6: branch_true: following ‘true’ branch (when the strings are equal)...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1169:12: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1169:12: call_function: calling ‘locate_attributes’ from ‘parse_attr_element’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1169:12: return_function: returning to ‘parse_attr_element’ from ‘locate_attributes’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1169:10: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1173:15: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1173:15: release_memory: ‘type’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1175:10: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1183:21: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1183:21: release_memory: ‘type’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1183:10: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1191:7: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1193:12: release_memory: ‘type’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1193:12: call_function: calling ‘deserialize_value’ from ‘parse_attr_element’
# 102| gboolean v;
# 103|
# 104|-> v = strcmp (str, "TRUE") == 0;
# 105|
# 106| g_value_set_boolean (value, v);
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:453:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘active_tags’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:596:1: enter_function: entry to ‘_gtk_text_buffer_serialize_rich_text’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:618:3: call_function: calling ‘serialize_text’ from ‘_gtk_text_buffer_serialize_rich_text’
# 451| * above this on in the stack)
# 452| */
# 453|-> while (active_tags->data != tag)
# 454| {
# 455| added = g_list_prepend (added, active_tags->data);
Error: GCC_ANALYZER_WARNING (CWE-404):
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:888:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:888:3: branch_true: following ‘true’ branch (when ‘first_attribute_name’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:889:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:889:3: branch_true: following ‘true’ branch (when ‘first_attribute_retloc’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:894:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:898:3: acquire_resource: ‘va_start’ called here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:903:10: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:905:7: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:905:7: branch_false: following ‘false’ branch (when ‘retloc’ is NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:905:7: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:888:3: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
# 886| int i;
# 887|
# 888|-> g_return_val_if_fail (first_attribute_name != NULL, FALSE);
# 889| g_return_val_if_fail (first_attribute_retloc != NULL, FALSE);
# 890|
Error: GCC_ANALYZER_WARNING (CWE-685):
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:901:3: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (1 consumed)
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1086:1: enter_function: entry to ‘parse_apply_tag_element’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1100:6: branch_true: following ‘true’ branch (when the strings are equal)...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1102:12: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1102:12: call_function: calling ‘locate_attributes’ from ‘parse_apply_tag_element’ with 1 variadic argument
# 899|
# 900| name = va_arg (args, const char*);
# 901|-> retloc = va_arg (args, const char**);
# 902|
# 903| while (name != NULL)
Error: GCC_ANALYZER_WARNING (CWE-685):
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:915:7: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (5 consumed)
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1153:1: enter_function: entry to ‘parse_attr_element’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1165:3: call_function: inlined call to ‘peek_state’ from ‘parse_attr_element’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1165:3: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1167:7: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1167:6: branch_true: following ‘true’ branch (when the strings are equal)...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1169:12: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextbufferserialize.c:1169:12: call_function: calling ‘locate_attributes’ from ‘parse_attr_element’ with 5 variadic arguments
# 913|
# 914| name = va_arg (args, const char*);
# 915|-> retloc = va_arg (args, const char**);
# 916| }
# 917|
Error: GCC_ANALYZER_WARNING (CWE-131):
gtk-3.24.49/redhat-linux-build/../gtk/gtktextchild.c:140:9: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
# 138| GtkTextLineSegment *seg;
# 139|
# 140|-> seg = g_slice_alloc (PIXBUF_SEG_SIZE);
# 141|
# 142| seg->type = >k_text_pixbuf_type;
Error: GCC_ANALYZER_WARNING (CWE-131):
gtk-3.24.49/redhat-linux-build/../gtk/gtktextchild.c:242:9: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
# 240| GtkTextLineSegment *seg;
# 241|
# 242|-> seg = g_slice_alloc (WIDGET_SEG_SIZE);
# 243|
# 244| seg->type = >k_text_child_type;
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:2658:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘display’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3615:1: enter_function: entry to ‘gtk_text_layout_move_iter_visually’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3623:3: branch_true: following ‘true’ branch (when ‘layout’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3624:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3624:3: branch_true: following ‘true’ branch (when ‘iter’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3626:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3628:10: branch_true: following ‘true’ branch (when ‘count != 0’)...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3630:27: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3640:10: branch_true: following ‘true’ branch (when ‘display’ is NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3641:19: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3641:19: call_function: calling ‘gtk_text_layout_get_line_display’ from ‘gtk_text_layout_move_iter_visually’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3641:19: return_function: returning to ‘gtk_text_layout_move_iter_visually’ from ‘gtk_text_layout_get_line_display’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3643:10: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3648:19: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3648:19: call_function: calling ‘line_display_iter_to_index’ from ‘gtk_text_layout_move_iter_visually’
# 2656| gint index;
# 2657|
# 2658|-> g_return_val_if_fail (_gtk_text_iter_get_text_line (iter) == display->line, 0);
# 2659|
# 2660| index = gtk_text_iter_get_visible_line_index (iter);
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3646:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘display’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3615:1: enter_function: entry to ‘gtk_text_layout_move_iter_visually’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3623:3: branch_true: following ‘true’ branch (when ‘layout’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3624:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3624:3: branch_true: following ‘true’ branch (when ‘iter’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3626:3: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3628:10: branch_true: following ‘true’ branch (when ‘count != 0’)...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3630:27: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3640:10: branch_true: following ‘true’ branch (when ‘display’ is NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3641:19: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3641:19: call_function: calling ‘gtk_text_layout_get_line_display’ from ‘gtk_text_layout_move_iter_visually’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3641:19: return_function: returning to ‘gtk_text_layout_move_iter_visually’ from ‘gtk_text_layout_get_line_display’
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3643:10: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3646:18: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktextlayout.c:3646:18: danger: dereference of NULL ‘display’
# 3644| strong = TRUE;
# 3645| else
# 3646|-> strong = display->direction == layout->cursor_direction;
# 3647|
# 3648| line_byte = line_display_iter_to_index (layout, display, iter);
Error: GCC_ANALYZER_WARNING (CWE-131):
gtk-3.24.49/redhat-linux-build/../gtk/gtktextsegment.c:437:9: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
# 435| GtkTextLineSegment *seg;
# 436|
# 437|-> seg = g_slice_alloc (TSEG_SIZE);
# 438|
# 439| seg->type = on ? >k_text_toggle_on_type : >k_text_toggle_off_type;
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtktreemodelfilter.c:1824:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘level’
gtk-3.24.49/redhat-linux-build/../gtk/gtktreemodelfilter.c:1808:1: enter_function: entry to ‘gtk_tree_model_filter_update_children’
gtk-3.24.49/redhat-linux-build/../gtk/gtktreemodelfilter.c:1822:3: call_function: calling ‘gtk_tree_model_filter_convert_iter_to_child_iter’ from ‘gtk_tree_model_filter_update_children’
gtk-3.24.49/redhat-linux-build/../gtk/gtktreemodelfilter.c:1822:3: return_function: returning to ‘gtk_tree_model_filter_update_children’ from ‘gtk_tree_model_filter_convert_iter_to_child_iter’
gtk-3.24.49/redhat-linux-build/../gtk/gtktreemodelfilter.c:1824:9: danger: dereference of NULL ‘level’
# 1822| gtk_tree_model_filter_convert_iter_to_child_iter (filter, &c_iter, &iter);
# 1823|
# 1824|-> if ((!level->parent_level || level->parent_level->ext_ref_count > 0) &&
# 1825| gtk_tree_model_iter_has_child (filter->priv->child_model, &c_iter))
# 1826| {
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/gtktreemodelfilter.c:3526:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘elt’
gtk-3.24.49/redhat-linux-build/../gtk/gtktreemodelfilter.c:1295:1: enter_function: entry to ‘gtk_tree_model_filter_clear_cache_helper’
gtk-3.24.49/redhat-linux-build/../gtk/gtktreemodelfilter.c:1312:7: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtktreemodelfilter.c:1313:7: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktreemodelfilter.c:1312:7: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtktreemodelfilter.c:1312:7: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktreemodelfilter.c:1312:7: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtktreemodelfilter.c:1314:7: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktreemodelfilter.c:1312:7: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtktreemodelfilter.c:1316:7: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtktreemodelfilter.c:1316:7: call_function: calling ‘gtk_tree_model_filter_free_level’ from ‘gtk_tree_model_filter_clear_cache_helper’
# 3524| elt = iter->user_data2;
# 3525|
# 3526|-> g_return_if_fail (elt->ref_count > 0);
# 3527| #ifdef MODEL_FILTER_DEBUG
# 3528| g_assert (elt->ref_count >= elt->ext_ref_count);
Error: GCC_ANALYZER_WARNING (CWE-688):
gtk-3.24.49/redhat-linux-build/../gtk/gtkwindow.c:682:10: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gtk-3.24.49/redhat-linux-build/../gtk/gtkwindow.c:2537:1: enter_function: entry to ‘gtk_window_set_startup_id’
gtk-3.24.49/redhat-linux-build/../gtk/gtkwindow.c:2549:3: release_memory: ‘0’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtkwindow.c:2551:6: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkwindow.c:2554:27: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkwindow.c:2554:27: call_function: calling ‘extract_time_from_startup_id’ from ‘gtk_window_set_startup_id’
gtk-3.24.49/redhat-linux-build/../gtk/gtkwindow.c:2554:27: return_function: returning to ‘gtk_window_set_startup_id’ from ‘extract_time_from_startup_id’
gtk-3.24.49/redhat-linux-build/../gtk/gtkwindow.c:2559:10: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/gtkwindow.c:2566:31: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/gtkwindow.c:2566:31: release_memory: ‘0’ is NULL
gtk-3.24.49/redhat-linux-build/../gtk/gtkwindow.c:2566:11: call_function: inlined call to ‘startup_id_is_fake’ from ‘gtk_window_set_startup_id’
# 680| startup_id_is_fake (const gchar* startup_id)
# 681| {
# 682|-> return strncmp (startup_id, "_TIME", 5) == 0;
# 683| }
# 684|
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../gtk/queryimmodules.c:48:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘str’
gtk-3.24.49/redhat-linux-build/../gtk/queryimmodules.c:155:5: enter_function: entry to ‘main’
gtk-3.24.49/redhat-linux-build/../gtk/queryimmodules.c:165:6: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/queryimmodules.c:182:6: branch_true: following ‘true’ branch (when ‘first_file == argc’)...
gtk-3.24.49/redhat-linux-build/../gtk/queryimmodules.c:188:14: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/queryimmodules.c:196:19: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/queryimmodules.c:197:14: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/queryimmodules.c:197:12: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/queryimmodules.c:199:25: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/queryimmodules.c:200:16: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/queryimmodules.c:209:39: branch_true: following ‘true’ branch (when ‘iterator’ is non-NULL)...
gtk-3.24.49/redhat-linux-build/../gtk/queryimmodules.c:211:25: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/queryimmodules.c:211:24: branch_true: following ‘true’ branch (when ‘__result != 0’)...
gtk-3.24.49/redhat-linux-build/../gtk/queryimmodules.c:212:55: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/queryimmodules.c:212:32: call_function: calling ‘query_module’ from ‘main’
# 46| while (TRUE)
# 47| {
# 48|-> char c = *str++;
# 49|
# 50| switch (c)
Error: GCC_ANALYZER_WARNING (CWE-688):
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:456:7: warning[-Wanalyzer-null-argument]: use of NULL ‘path2’ where non-null expected
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1709:1: enter_function: entry to ‘main’
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1714:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1717:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1739:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1761:7: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1780:3: call_function: calling ‘build_cache’ from ‘main’
# 454| }
# 455|
# 456|-> if (strcmp (path, path2) == 0)
# 457| {
# 458| g_free (path2);
Error: GCC_ANALYZER_WARNING (CWE-688):
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:456:7: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ where non-null expected
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1709:1: enter_function: entry to ‘main’
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1714:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1717:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1739:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1761:7: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1780:3: call_function: calling ‘build_cache’ from ‘main’
# 454| }
# 455|
# 456|-> if (strcmp (path, path2) == 0)
# 457| {
# 458| g_free (path2);
Error: GCC_ANALYZER_WARNING (CWE-688):
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:680:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1709:1: enter_function: entry to ‘main’
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1714:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1717:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1739:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1761:7: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../gtk/updateiconcache.c:1780:3: call_function: calling ‘build_cache’ from ‘main’
# 678|
# 679| basename = g_strdup (name);
# 680|-> dot = strrchr (basename, '.');
# 681| *dot = '\0';
# 682|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/input/gtkimcontextmultipress.c:204:3: warning[-Wdeprecated-declarations]: ‘gdk_threads_enter’ is deprecated
# 202| GtkImContextMultipress *multipress_context;
# 203|
# 204|-> gdk_threads_enter ();
# 205|
# 206| multipress_context = GTK_IM_CONTEXT_MULTIPRESS (data);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/input/gtkimcontextmultipress.c:214:3: warning[-Wdeprecated-declarations]: ‘gdk_threads_leave’ is deprecated
# 212| multipress_context->timeout_id = 0;
# 213|
# 214|-> gdk_threads_leave ();
# 215|
# 216| return G_SOURCE_REMOVE; /* don't call me again */
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../modules/input/gtkimcontextxim.c:1031:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
gtk-3.24.49/redhat-linux-build/../modules/input/gtkimcontextxim.c:996:1: enter_function: entry to ‘xim_text_to_utf8’
gtk-3.24.49/redhat-linux-build/../modules/input/gtkimcontextxim.c:999:11: release_memory: ‘error’ is NULL
gtk-3.24.49/redhat-linux-build/../modules/input/gtkimcontextxim.c:1002:6: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../modules/input/gtkimcontextxim.c:1004:10: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../modules/input/gtkimcontextxim.c:1011:19: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../modules/input/gtkimcontextxim.c:1011:10: branch_true: following ‘true’ branch (when the strings are equal)...
gtk-3.24.49/redhat-linux-build/../modules/input/gtkimcontextxim.c:1012:18: call_function: inlined call to ‘g_strdup_inline’ from ‘xim_text_to_utf8’
gtk-3.24.49/redhat-linux-build/../modules/input/gtkimcontextxim.c:1020:10: branch_false: following ‘false’ branch (when ‘result’ is NULL)...
gtk-3.24.49/redhat-linux-build/../modules/input/gtkimcontextxim.c:1031:11: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../modules/input/gtkimcontextxim.c:1031:11: release_memory: ‘error’ is NULL
gtk-3.24.49/redhat-linux-build/../modules/input/gtkimcontextxim.c:1032:11: release_memory: ‘error’ is NULL
gtk-3.24.49/redhat-linux-build/../modules/input/gtkimcontextxim.c:1031:11: danger: dereference of NULL ‘error’
# 1029| else
# 1030| {
# 1031|-> g_warning ("Error converting text from IM to UCS-4: %s", error->message);
# 1032| g_error_free (error);
# 1033|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:436:7: warning[-Wdeprecated-declarations]: ‘ppdFindAttr’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 434| if (ppd_file != NULL)
# 435| {
# 436|-> ppd_attr = ppdFindAttr (ppd_file, "LanguageLevel", NULL);
# 437|
# 438| if (ppd_attr != NULL)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:443:11: warning[-Wdeprecated-declarations]: ‘ppdFindAttr’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 441| if (gtk_print_settings_get_resolution (settings) == 0)
# 442| {
# 443|-> ppd_attr_res = ppdFindAttr (ppd_file, "DefaultResolution", NULL);
# 444|
# 445| if (ppd_attr_res != NULL)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:464:7: warning[-Wdeprecated-declarations]: ‘ppdFindAttr’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 462| res_string = g_strdup_printf ("%ddpi",
# 463| gtk_print_settings_get_resolution (settings));
# 464|-> ppd_attr_res_screen_freq = ppdFindAttr (ppd_file, "ResScreenFreq", res_string);
# 465| g_free (res_string);
# 466|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:472:11: warning[-Wdeprecated-declarations]: ‘ppdFindAttr’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 470| gtk_print_settings_get_resolution_x (settings),
# 471| gtk_print_settings_get_resolution_y (settings));
# 472|-> ppd_attr_res_screen_freq = ppdFindAttr (ppd_file, "ResScreenFreq", res_string);
# 473| g_free (res_string);
# 474| }
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:476:7: warning[-Wdeprecated-declarations]: ‘ppdFindAttr’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 474| }
# 475|
# 476|-> ppd_attr_screen_freq = ppdFindAttr (ppd_file, "ScreenFreq", NULL);
# 477|
# 478| if (ppd_attr_res_screen_freq != NULL && atof (ppd_attr_res_screen_freq->value) > 0.0)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:609:7: warning[-Wdeprecated-declarations]: ‘ppdFindCustomOption’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 607| gboolean custom_values_enabled = FALSE;
# 608|
# 609|-> coption = ppdFindCustomOption (printer->ppd_file, key);
# 610| if (coption && coption->option)
# 611| {
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:4080:7: warning[-Wdeprecated-declarations]: ‘ppdOpenFd’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 4078| /* let ppdOpenFd take over the ownership of the open file */
# 4079| g_io_channel_seek_position (data->ppd_io, 0, G_SEEK_SET, NULL);
# 4080|-> data->printer->ppd_file = ppdOpenFd (dup (g_io_channel_unix_get_fd (data->ppd_io)));
# 4081| ppdLocalize (data->printer->ppd_file);
# 4082| ppdMarkDefaults (data->printer->ppd_file);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:4081:7: warning[-Wdeprecated-declarations]: ‘ppdLocalize’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 4079| g_io_channel_seek_position (data->ppd_io, 0, G_SEEK_SET, NULL);
# 4080| data->printer->ppd_file = ppdOpenFd (dup (g_io_channel_unix_get_fd (data->ppd_io)));
# 4081|-> ppdLocalize (data->printer->ppd_file);
# 4082| ppdMarkDefaults (data->printer->ppd_file);
# 4083| }
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:4082:7: warning[-Wdeprecated-declarations]: ‘ppdMarkDefaults’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 4080| data->printer->ppd_file = ppdOpenFd (dup (g_io_channel_unix_get_fd (data->ppd_io)));
# 4081| ppdLocalize (data->printer->ppd_file);
# 4082|-> ppdMarkDefaults (data->printer->ppd_file);
# 4083| }
# 4084|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5069:7: warning[-Wdeprecated-declarations]: ‘ppdFindOption’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 5067| for (i = ppd->num_consts, constraint = ppd->consts; i > 0; i--, constraint++)
# 5068| {
# 5069|-> option1 = ppdFindOption (ppd, constraint->option1);
# 5070| if (option1 == NULL)
# 5071| continue;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5073:7: warning[-Wdeprecated-declarations]: ‘ppdFindOption’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 5071| continue;
# 5072|
# 5073|-> option2 = ppdFindOption (ppd, constraint->option2);
# 5074| if (option2 == NULL)
# 5075| continue;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5225:7: warning[-Wdeprecated-declarations]: ‘ppdFindCustomOption’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 5223| label = get_option_text (ppd_file, ppd_option);
# 5224|
# 5225|-> coption = ppdFindCustomOption (ppd_file, ppd_option->keyword);
# 5226|
# 5227| if (coption)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5231:11: warning[-Wdeprecated-declarations]: ‘ppdFirstCustomParam’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 5229| ppd_cparam_t *cparam;
# 5230|
# 5231|-> cparam = ppdFirstCustomParam (coption);
# 5232|
# 5233| if (ppdNextCustomParam (coption) == NULL)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5233:11: warning[-Wdeprecated-declarations]: ‘ppdNextCustomParam’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 5231| cparam = ppdFirstCustomParam (coption);
# 5232|
# 5233|-> if (ppdNextCustomParam (coption) == NULL)
# 5234| {
# 5235| switch (cparam->type)
Error: GCC_ANALYZER_WARNING (CWE-688):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5859:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5716:1: enter_function: entry to ‘cups_printer_get_options’
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5755:15: branch_true: following ‘true’ branch (when ‘i != 4’)...
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5756:23: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5781:6: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5783:13: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5854:19: branch_true: following ‘true’ branch (when ‘i < num_of_covers’)...
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5856:22: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5858:23: branch_true: following ‘true’ branch (when ‘j != 7’)...
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5859:25: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5859:17: danger: argument 2 (‘<unknown>’) NULL where non-null expected
# 5857| value = NULL;
# 5858| for (j = 0; j < G_N_ELEMENTS (cover_default); j++)
# 5859|-> if (strcmp (cover_default[j], cover[i]) == 0)
# 5860| {
# 5861| value = cover_display_default[j];
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5933:7: warning[-Wdeprecated-declarations]: ‘ppdMarkDefaults’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 5931| const gchar *ppd_name;
# 5932|
# 5933|-> ppdMarkDefaults (ppd_file);
# 5934|
# 5935| paper_size = gtk_page_setup_get_paper_size (page_setup);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:5937:7: warning[-Wdeprecated-declarations]: ‘ppdFindOption’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 5935| paper_size = gtk_page_setup_get_paper_size (page_setup);
# 5936|
# 5937|-> ppd_option = ppdFindOption (ppd_file, "PageSize");
# 5938| if (ppd_option)
# 5939| {
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:6118:5: warning[-Wdeprecated-declarations]: ‘ppdMarkOption’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 6116|
# 6117| if (option)
# 6118|-> ppdMarkOption (ppd_file, ppd_option->keyword, option->value);
# 6119|
# 6120| g_free (name);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:6189:3: warning[-Wdeprecated-declarations]: ‘ppdMarkDefaults’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 6187| return FALSE;
# 6188|
# 6189|-> ppdMarkDefaults (ppd_file);
# 6190|
# 6191| for (i = 0; i < ppd_file->num_groups; i++)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:6194:3: warning[-Wdeprecated-declarations]: ‘ppdConflicts’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 6192| mark_group_from_set (options, ppd_file, &ppd_file->groups[i]);
# 6193|
# 6194|-> num_conflicts = ppdConflicts (ppd_file);
# 6195|
# 6196| if (num_conflicts > 0)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:6843:3: warning[-Wdeprecated-declarations]: ‘ppdFindOption’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 6841|
# 6842| display_name = NULL;
# 6843|-> option = ppdFindOption (ppd_file, "PageSize");
# 6844| if (option)
# 6845| {
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:6846:7: warning[-Wdeprecated-declarations]: ‘ppdFindChoice’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 6844| if (option)
# 6845| {
# 6846|-> choice = ppdFindChoice (option, size->name);
# 6847| if (choice)
# 6848| display_name = ppd_text_to_utf8 (ppd_file, choice->text);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:6976:7: warning[-Wdeprecated-declarations]: ‘ppdFindOption’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 6974| if (ppd_file != NULL)
# 6975| {
# 6976|-> option = ppdFindOption (ppd_file, "PageSize");
# 6977| if (option == NULL)
# 6978| return NULL;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../modules/printbackends/cups/gtkprintbackendcups.c:6980:7: warning[-Wdeprecated-declarations]: ‘ppdPageSize’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 6978| return NULL;
# 6979|
# 6980|-> size = ppdPageSize (ppd_file, option->defchoice);
# 6981| if (size == NULL)
# 6982| return NULL;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/styleexamples.c:246:3: warning[-Wdeprecated-declarations]: ‘gtk_render_frame_gap’ is deprecated: Use 'gtk_render_frame' instead
# 244| gtk_style_context_add_class (context, "frame");
# 245| gtk_style_context_set_junction_sides (context, 0);
# 246|-> gtk_render_frame_gap (context, cr, 12, 12, 50, 50, GTK_POS_TOP, 15, 35);
# 247| gtk_style_context_remove_class (context, "frame");
# 248|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testgtk.c:159:7: warning[-Wdeprecated-declarations]: ‘gtk_widget_is_composited’ is deprecated: Use 'gdk_screen_is_composited' instead
# 157|
# 158| if (gdk_screen_get_rgba_visual (gtk_widget_get_screen (widget)) &&
# 159|-> gtk_widget_is_composited (widget))
# 160| cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, 0.0); /* transparent */
# 161| else
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testgtk.c:254:3: warning[-Wdeprecated-declarations]: ‘gtk_widget_is_composited’ is deprecated: Use 'gdk_screen_is_composited' instead
# 252| GtkLabel *label)
# 253| {
# 254|-> gboolean is_composited = gtk_widget_is_composited (window);
# 255|
# 256| if (is_composited)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testgtk.c:453:3: warning[-Wdeprecated-declarations]: ‘gdk_window_set_background_rgba’ is deprecated
# 451|
# 452| gdk_window_set_user_data (child, widget);
# 453|-> gdk_window_set_background_rgba (child, &colors[level]);
# 454| }
# 455|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testgtk.c:5389:7: warning[-Wdeprecated-declarations]: ‘gtk_container_set_focus_chain’ is deprecated
# 5387| gtk_container_add (GTK_CONTAINER (frame), table);
# 5388|
# 5389|-> gtk_container_set_focus_chain (GTK_CONTAINER (table),
# 5390| list);
# 5391|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testgtk.c:7646:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 7644| {
# 7645| case GDK_GRAVITY_SOUTH_EAST:
# 7646|-> *x = gdk_screen_get_width (screen) - w;
# 7647| *y = gdk_screen_get_height (screen) - h;
# 7648| break;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testgtk.c:7647:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 7645| case GDK_GRAVITY_SOUTH_EAST:
# 7646| *x = gdk_screen_get_width (screen) - w;
# 7647|-> *y = gdk_screen_get_height (screen) - h;
# 7648| break;
# 7649|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testgtk.c:7651:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 7649|
# 7650| case GDK_GRAVITY_NORTH_EAST:
# 7651|-> *x = gdk_screen_get_width (screen) - w;
# 7652| *y = 0;
# 7653| break;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testgtk.c:7657:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 7655| case GDK_GRAVITY_SOUTH_WEST:
# 7656| *x = 0;
# 7657|-> *y = gdk_screen_get_height (screen) - h;
# 7658| break;
# 7659|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testgtk.c:7666:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 7664|
# 7665| case GDK_GRAVITY_SOUTH:
# 7666|-> *x = (gdk_screen_get_width (screen) - w) / 2;
# 7667| *y = gdk_screen_get_height (screen) - h;
# 7668| break;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testgtk.c:7667:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 7665| case GDK_GRAVITY_SOUTH:
# 7666| *x = (gdk_screen_get_width (screen) - w) / 2;
# 7667|-> *y = gdk_screen_get_height (screen) - h;
# 7668| break;
# 7669|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testgtk.c:7671:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 7669|
# 7670| case GDK_GRAVITY_NORTH:
# 7671|-> *x = (gdk_screen_get_width (screen) - w) / 2;
# 7672| *y = 0;
# 7673| break;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testgtk.c:7677:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 7675| case GDK_GRAVITY_WEST:
# 7676| *x = 0;
# 7677|-> *y = (gdk_screen_get_height (screen) - h) / 2;
# 7678| break;
# 7679|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testgtk.c:7681:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 7679|
# 7680| case GDK_GRAVITY_EAST:
# 7681|-> *x = gdk_screen_get_width (screen) - w;
# 7682| *y = (gdk_screen_get_height (screen) - h) / 2;
# 7683| break;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testgtk.c:7682:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 7680| case GDK_GRAVITY_EAST:
# 7681| *x = gdk_screen_get_width (screen) - w;
# 7682|-> *y = (gdk_screen_get_height (screen) - h) / 2;
# 7683| break;
# 7684|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testgtk.c:7686:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 7684|
# 7685| case GDK_GRAVITY_CENTER:
# 7686|-> *x = (gdk_screen_get_width (screen) - w) / 2;
# 7687| *y = (gdk_screen_get_height (screen) - h) / 2;
# 7688| break;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testgtk.c:7687:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 7685| case GDK_GRAVITY_CENTER:
# 7686| *x = (gdk_screen_get_width (screen) - w) / 2;
# 7687|-> *y = (gdk_screen_get_height (screen) - h) / 2;
# 7688| break;
# 7689|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testgtk.c:8929:3: warning[-Wdeprecated-declarations]: ‘gdk_window_process_updates’ is deprecated
# 8927| window = gtk_widget_get_window (widget);
# 8928| gdk_window_scroll (window, 0, dy);
# 8929|-> gdk_window_process_updates (window, FALSE);
# 8930| }
# 8931|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testiconview.c:381:3: warning[-Wdeprecated-declarations]: ‘gtk_menu_popup’ is deprecated: Use '(gtk_menu_popup_at_widget, gtk_menu_popup_at_pointer, gtk_menu_popup_at_rect)' instead
# 379| }
# 380|
# 381|-> gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL,
# 382| button, event_time);
# 383| }
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testinput.c:163:3: warning[-Wdeprecated-declarations]: ‘gdk_window_process_updates’ is deprecated
# 161| update_rect.x, update_rect.y,
# 162| update_rect.width, update_rect.height);
# 163|-> gdk_window_process_updates (gtk_widget_get_window (widget), TRUE);
# 164| }
# 165|
Error: GCC_ANALYZER_WARNING (CWE-688):
gtk-3.24.49/redhat-linux-build/../tests/testselection.c:219:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gtk-3.24.49/redhat-linux-build/../tests/testselection.c:216:1: enter_function: entry to ‘stringify_text’
gtk-3.24.49/redhat-linux-build/../tests/testselection.c:219:16: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
# 217| {
# 218| gchar *str = g_strdup ((gchar *)(data+*position));
# 219|-> *position += strlen (str) + 1;
# 220|
# 221| return str;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testtoolbar.c:404:7: warning[-Wdeprecated-declarations]: ‘gtk_menu_popup’ is deprecated: Use '(gtk_menu_popup_at_widget, gtk_menu_popup_at_pointer, gtk_menu_popup_at_rect)' instead
# 402| position_data.y = y;
# 403|
# 404|-> gtk_menu_popup (menu, NULL, NULL, position_function,
# 405| &position_data, button_number, gtk_get_current_event_time());
# 406| }
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testtoolbar.c:408:5: warning[-Wdeprecated-declarations]: ‘gtk_menu_popup’ is deprecated: Use '(gtk_menu_popup_at_widget, gtk_menu_popup_at_pointer, gtk_menu_popup_at_rect)' instead
# 406| }
# 407| else
# 408|-> gtk_menu_popup (menu, NULL, NULL, NULL, NULL, 0, gtk_get_current_event_time());
# 409|
# 410| return TRUE;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testtreemodel.c:234:11: warning[-Wdeprecated-declarations]: ‘mallinfo’ is deprecated
# 232| #ifdef HAVE_MALLINFO
# 233| /* Peculiar location of this, btw. -- MW. */
# 234|-> uordblks_before = mallinfo().uordblks;
# 235| #endif
# 236| g_timer_reset (timer);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testtreemodel.c:246:7: warning[-Wdeprecated-declarations]: ‘mallinfo’ is deprecated
# 244| elapsed = elapsed * 1000 / repeats;
# 245| #ifdef HAVE_MALLINFO
# 246|-> memused = (mallinfo().uordblks - uordblks_before) / 1024;
# 247| #else
# 248| memused = 0;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testwindows.c:55:3: warning[-Wdeprecated-declarations]: ‘gdk_window_set_background_rgba’ is deprecated
# 53| }
# 54|
# 55|-> gdk_window_set_background_rgba (window, bg);
# 56| g_object_set_data_full (G_OBJECT (window), "color", bg, g_free);
# 57|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testwindows.c:723:7: warning[-Wdeprecated-declarations]: ‘gdk_window_set_background_rgba’ is deprecated
# 721| color->alpha = 1;
# 722|
# 723|-> gdk_window_set_background_rgba (window, color);
# 724| }
# 725|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testxinerama.c:32:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_monitor_at_window’ is deprecated: Use 'gdk_display_get_monitor_at_window' instead
# 30| gchar *str;
# 31| GdkScreen *screen = gtk_widget_get_screen (widget);
# 32|-> gint i = gdk_screen_get_monitor_at_window (screen,
# 33| gtk_widget_get_window (widget));
# 34|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testxinerama.c:41:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_monitor_geometry’ is deprecated: Use 'gdk_monitor_get_geometry' instead
# 39| GdkRectangle monitor;
# 40|
# 41|-> gdk_screen_get_monitor_geometry (screen,
# 42| i, &monitor);
# 43| primary_monitor = gdk_screen_get_primary_monitor (screen);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testxinerama.c:43:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_primary_monitor’ is deprecated: Use 'gdk_display_get_primary_monitor' instead
# 41| gdk_screen_get_monitor_geometry (screen,
# 42| i, &monitor);
# 43|-> primary_monitor = gdk_screen_get_primary_monitor (screen);
# 44|
# 45| str = g_strdup_printf ("<big><span foreground='white' background='black'>"
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testxinerama.c:80:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_n_monitors’ is deprecated: Use 'gdk_display_get_n_monitors' instead
# 78| screen = gdk_screen_get_default ();
# 79|
# 80|-> num_monitors = gdk_screen_get_n_monitors (screen);
# 81| if (num_monitors == 1)
# 82| g_warning ("The default screen of the current display only has one monitor.");
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testxinerama.c:84:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_primary_monitor’ is deprecated: Use 'gdk_display_get_primary_monitor' instead
# 82| g_warning ("The default screen of the current display only has one monitor.");
# 83|
# 84|-> primary_monitor = gdk_screen_get_primary_monitor (screen);
# 85|
# 86| for (i = 0; i < num_monitors; i++)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../tests/testxinerama.c:93:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_monitor_geometry’ is deprecated: Use 'gdk_monitor_get_geometry' instead
# 91| window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
# 92|
# 93|-> gdk_screen_get_monitor_geometry (screen, i, &monitor);
# 94| gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);
# 95| gtk_window_move (GTK_WINDOW (window), (monitor.width - 200) / 2 + monitor.x,
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:322:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:306:1: enter_function: entry to ‘on_update’
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:321:19: call_function: calling ‘peek_pending_frame’ from ‘on_update’
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:321:19: return_function: returning to ‘on_update’ from ‘peek_pending_frame’
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:322:7: danger: dereference of NULL ‘peek_pending_frame()’
# 320|
# 321| pending_frame = peek_pending_frame ();
# 322|-> if (stream_time_to_clock_time (pending_frame->stream_time)
# 323| < predicted_presentation_time + refresh_interval / 2)
# 324| {
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:346:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:306:1: enter_function: entry to ‘on_update’
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:321:19: call_function: calling ‘peek_pending_frame’ from ‘on_update’
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:321:19: return_function: returning to ‘on_update’ from ‘peek_pending_frame’
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:322:6: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:327:35: call_function: calling ‘peek_next_frame’ from ‘on_update’
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:327:35: return_function: returning to ‘on_update’ from ‘peek_next_frame’
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:328:14: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:341:11: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:345:25: call_function: calling ‘unqueue_frame’ from ‘on_update’
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:345:25: return_function: returning to ‘on_update’ from ‘unqueue_frame’
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:345:7: release_memory: ‘0’ is NULL
gtk-3.24.49/redhat-linux-build/../tests/video-timer.c:346:37: danger: dereference of NULL ‘unqueue_frame()’
# 344| n_frames++;
# 345| displayed_frame = unqueue_frame ();
# 346|-> displayed_frame->clock_time = stream_time_to_clock_time (displayed_frame->stream_time);
# 347|
# 348| displayed_frame->frame_counter = gdk_frame_timings_get_frame_counter (timings);
Error: GCC_ANALYZER_WARNING (CWE-476):
gtk-3.24.49/redhat-linux-build/../testsuite/a11y/accessibility-dump.c:138:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘accessible’
gtk-3.24.49/redhat-linux-build/../testsuite/a11y/accessibility-dump.c:123:7: branch_true: following ‘true’ branch (when ‘accessible’ is NULL)...
gtk-3.24.49/redhat-linux-build/../testsuite/a11y/accessibility-dump.c:130:6: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../testsuite/a11y/accessibility-dump.c:130:6: branch_true: following ‘true’ branch...
gtk-3.24.49/redhat-linux-build/../testsuite/a11y/accessibility-dump.c:135:6: branch_true: following ‘true’ branch (when ‘name’ is NULL)...
gtk-3.24.49/redhat-linux-build/../testsuite/a11y/accessibility-dump.c:138:14: branch_true: ...to here
gtk-3.24.49/redhat-linux-build/../testsuite/a11y/accessibility-dump.c:138:48: danger: dereference of NULL ‘accessible’
# 136| {
# 137| /* Generate a unique, repeatable name */
# 138|-> name = g_strdup_printf ("unnamed-%s-%d", G_OBJECT_TYPE_NAME (accessible), unnamed_object_count++);
# 139| }
# 140|
Error: GCC_ANALYZER_WARNING (CWE-688):
gtk-3.24.49/redhat-linux-build/../testsuite/css/parser/test-css-parser.c:60:5: warning[-Wanalyzer-null-argument]: use of NULL ‘css_file’ where non-null expected
gtk-3.24.49/redhat-linux-build/../testsuite/css/parser/test-css-parser.c:165:1: enter_function: entry to ‘parse_css_file’
gtk-3.24.49/redhat-linux-build/../testsuite/css/parser/test-css-parser.c:185:6: branch_false: following ‘false’ branch (when ‘generate == 0’)...
gtk-3.24.49/redhat-linux-build/../testsuite/css/parser/test-css-parser.c:191:20: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../testsuite/css/parser/test-css-parser.c:191:20: call_function: calling ‘test_get_reference_file’ from ‘parse_css_file’
gtk-3.24.49/redhat-linux-build/../testsuite/css/parser/test-css-parser.c:191:20: return_function: returning to ‘parse_css_file’ from ‘test_get_reference_file’
gtk-3.24.49/redhat-linux-build/../testsuite/css/parser/test-css-parser.c:193:10: call_function: calling ‘diff_with_file’ from ‘parse_css_file’
gtk-3.24.49/redhat-linux-build/../testsuite/css/parser/test-css-parser.c:193:10: return_function: returning to ‘parse_css_file’ from ‘diff_with_file’
gtk-3.24.49/redhat-linux-build/../testsuite/css/parser/test-css-parser.c:196:6: branch_false: following ‘false’ branch...
gtk-3.24.49/redhat-linux-build/../testsuite/css/parser/test-css-parser.c:201:3: branch_false: ...to here
gtk-3.24.49/redhat-linux-build/../testsuite/css/parser/test-css-parser.c:203:17: call_function: calling ‘test_get_errors_file’ from ‘parse_css_file’
#argument 1 of ‘__builtin_strlen’ must be non-null
# 58|
# 59| if (g_str_has_suffix (css_file, ".css"))
# 60|-> g_string_append_len (file, css_file, strlen (css_file) - 4);
# 61| else
# 62| g_string_append (file, css_file);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../testsuite/gdk/visual.c:97:3: warning[-Wdeprecated-declarations]: ‘gdk_query_depths’ is deprecated
# 95| gboolean is_depth;
# 96|
# 97|-> gdk_query_depths (&depths, &n_depths);
# 98| g_assert_cmpint (n_depths, >, 0);
# 99| for (i = 0; i < n_depths; i++)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../testsuite/gdk/visual.c:104:7: warning[-Wdeprecated-declarations]: ‘gdk_visual_get_best_with_depth’ is deprecated
# 102| g_assert_cmpint (depths[i], <=, 32);
# 103|
# 104|-> visual = gdk_visual_get_best_with_depth (depths[i]);
# 105|
# 106| g_assert_nonnull (visual);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../testsuite/gdk/visual.c:119:7: warning[-Wdeprecated-declarations]: ‘gdk_visual_get_best_with_depth’ is deprecated
# 117| }
# 118|
# 119|-> visual = gdk_visual_get_best_with_depth (i);
# 120| if (!is_depth)
# 121| g_assert_null (visual);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../testsuite/gdk/visual.c:139:3: warning[-Wdeprecated-declarations]: ‘gdk_query_visual_types’ is deprecated
# 137| gboolean is_type;
# 138|
# 139|-> gdk_query_visual_types (&types, &n_types);
# 140| g_assert_cmpint (n_types, >, 0);
# 141| for (i = 0; i < n_types; i++)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../testsuite/gdk/visual.c:146:7: warning[-Wdeprecated-declarations]: ‘gdk_visual_get_best_with_type’ is deprecated
# 144| g_assert_cmpint (types[i], <=, GDK_VISUAL_DIRECT_COLOR);
# 145|
# 146|-> visual = gdk_visual_get_best_with_type (types[i]);
# 147|
# 148| g_assert_nonnull (visual);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../testsuite/gdk/visual.c:161:7: warning[-Wdeprecated-declarations]: ‘gdk_visual_get_best_with_type’ is deprecated
# 159| }
# 160|
# 161|-> visual = gdk_visual_get_best_with_type (i);
# 162| if (!is_type)
# 163| g_assert_null (visual);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../testsuite/gtk/action.c:123:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 121|
# 122| prefixes = gtk_widget_list_action_prefixes (window);
# 123|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# 124| g_free (prefixes);
# 125|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../testsuite/gtk/action.c:127:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 125|
# 126| prefixes = gtk_widget_list_action_prefixes (box);
# 127|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# 128| g_free (prefixes);
# 129|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../testsuite/gtk/action.c:131:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 129|
# 130| prefixes = gtk_widget_list_action_prefixes (button);
# 131|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# 132| g_free (prefixes);
# 133|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../testsuite/gtk/action.c:153:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 151|
# 152| prefixes = gtk_widget_list_action_prefixes (window);
# 153|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# 154| g_free (prefixes);
# 155|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../testsuite/gtk/action.c:157:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 155|
# 156| prefixes = gtk_widget_list_action_prefixes (box);
# 157|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# 158| g_free (prefixes);
# 159|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../testsuite/gtk/action.c:161:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 159|
# 160| prefixes = gtk_widget_list_action_prefixes (button);
# 161|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected1));
# 162| g_free (prefixes);
# 163|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../testsuite/gtk/action.c:183:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 181|
# 182| prefixes = gtk_widget_list_action_prefixes (window);
# 183|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# 184| g_free (prefixes);
# 185|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../testsuite/gtk/action.c:187:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 185|
# 186| prefixes = gtk_widget_list_action_prefixes (box);
# 187|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected2));
# 188| g_free (prefixes);
# 189|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../testsuite/gtk/action.c:191:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 189|
# 190| prefixes = gtk_widget_list_action_prefixes (button);
# 191|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected3));
# 192| g_free (prefixes);
# 193|
Error: GCC_ANALYZER_WARNING (CWE-688):
gtk-3.24.49/redhat-linux-build/../testsuite/gtk/builderparser.c:68:7: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gtk-3.24.49/redhat-linux-build/../testsuite/gtk/builderparser.c:63:1: enter_function: entry to ‘get_expected_filename’
gtk-3.24.49/redhat-linux-build/../testsuite/gtk/builderparser.c:68:7: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
# 66|
# 67| f = g_strdup (filename);
# 68|-> p = strstr (f, ".ui");
# 69| if (p)
# 70| *p = 0;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../testsuite/gtk/keyhash.c:39:3: warning[-Wdeprecated-declarations]: ‘gdk_keymap_get_default’ is deprecated: Use 'gdk_keymap_get_for_display' instead
# 37|
# 38| count = 0;
# 39|-> hash = _gtk_key_hash_new (gdk_keymap_get_default (), counting_destroy);
# 40|
# 41| keys = _gtk_key_hash_lookup (hash, 0, 0, 0, 0);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/redhat-linux-build/../testsuite/reftests/reftest-snapshot.c:148:7: warning[-Wdeprecated-declarations]: ‘gdk_window_get_background_pattern’ is deprecated
# 146| break;
# 147| case SNAPSHOT_DRAW:
# 148|-> bg = gdk_window_get_background_pattern (gtk_widget_get_window (widget));
# 149| if (bg)
# 150| {
Error: COMPILER_WARNING:
gtk-3.24.49/redhat-linux-build/./config.h:170:9: warning[warning]: ‘_GDK_EXTERN’ redefined
# 168| #define XINPUT_2_4 1
# 169|
# 170|-> #define _GDK_EXTERN __attribute__((visibility("default"))) extern
# 171|
Error: COMPILER_WARNING:
gtk-3.24.49/redhat-linux-build/./gdk/gdkversionmacros.h:32:9: note[note]: this is the location of the previous definition
# 30|
# 31| #ifndef _GDK_EXTERN
# 32|-> #define _GDK_EXTERN extern
# 33| #endif
# 34|
Error: COMPILER_WARNING:
gtk-3.24.49/gtk/fallback-c89.c:20: included_from: Included from here.
gtk-3.24.49/tests/animated-resizing.c:6: included_from: Included from here.
gtk-3.24.49/redhat-linux-build/config.h:170:9: warning: ‘_GDK_EXTERN’ redefined
# 170 | #define _GDK_EXTERN __attribute__((visibility("default"))) extern
# | ^~~~~~~~~~~
gtk-3.24.49/gdk/gdk.h:31: included_from: Included from here.
gtk-3.24.49/gtk/gtk.h:30: included_from: Included from here.
gtk-3.24.49/tests/animated-resizing.c:3: included_from: Included from here.
gtk-3.24.49/redhat-linux-build/gdk/gdkversionmacros.h:32:9: note: this is the location of the previous definition
# 32 | #define _GDK_EXTERN extern
# | ^~~~~~~~~~~
# 168| #define XINPUT_2_4 1
# 169|
# 170|-> #define _GDK_EXTERN __attribute__((visibility("default"))) extern
# 171|
Error: CPPCHECK_WARNING (CWE-682):
gtk-3.24.49/tests/gtkgears.c:594: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
# 592| /* Set up the position of the attributes in the vertex buffer object */
# 593| glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 6 * sizeof(GLfloat), NULL);
# 594|-> glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 6 * sizeof(GLfloat), (GLfloat *) 0 + 3);
# 595|
# 596| /* Enable the attributes */
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/styleexamples.c: scope_hint: In function ‘draw_cb_frame_gap’
gtk-3.24.49/tests/styleexamples.c:246:3: warning[-Wdeprecated-declarations]: ‘gtk_render_frame_gap’ is deprecated: Use 'gtk_render_frame' instead
# 246 | gtk_render_frame_gap (context, cr, 12, 12, 50, 50, GTK_POS_TOP, 15, 35);
# | ^~~~~~~~~~~~~~~~~~~~
gtk-3.24.49/gtk/gtk.h:181: included_from: Included from here.
gtk-3.24.49/tests/styleexamples.c:2: included_from: Included from here.
gtk-3.24.49/gtk/gtkrender.h:114:13: note: declared here
# 114 | void gtk_render_frame_gap (GtkStyleContext *context,
# | ^~~~~~~~~~~~~~~~~~~~
# 244| gtk_style_context_add_class (context, "frame");
# 245| gtk_style_context_set_junction_sides (context, 0);
# 246|-> gtk_render_frame_gap (context, cr, 12, 12, 50, 50, GTK_POS_TOP, 15, 35);
# 247| gtk_style_context_remove_class (context, "frame");
# 248|
Error: CPPCHECK_WARNING (CWE-664):
gtk-3.24.49/tests/testcombochange.c:71: error[va_end_missing]: va_list 'vap' was opened but not closed by va_end().
# 69|
# 70| g_free (msg);
# 71|-> }
# 72|
# 73| static GtkWidget *
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testgtk.c: scope_hint: In function ‘on_alpha_window_draw’
gtk-3.24.49/tests/testgtk.c:159:7: warning[-Wdeprecated-declarations]: ‘gtk_widget_is_composited’ is deprecated: Use 'gdk_screen_is_composited' instead
# 159 | gtk_widget_is_composited (widget))
# | ^~~~~~~~~~~~~~~~~~~~~~~~
gtk-3.24.49/gtk/gtkapplication.h:27: included_from: Included from here.
gtk-3.24.49/gtk/gtkwindow.h:33: included_from: Included from here.
gtk-3.24.49/gtk/gtkdialog.h:32: included_from: Included from here.
gtk-3.24.49/gtk/gtkaboutdialog.h:30: included_from: Included from here.
gtk-3.24.49/gtk/gtk.h:31: included_from: Included from here.
gtk-3.24.49/tests/testgtk.c:40: included_from: Included from here.
gtk-3.24.49/gtk/gtkwidget.h:1247:10: note: declared here
# 1247 | gboolean gtk_widget_is_composited (GtkWidget *widget);
# | ^~~~~~~~~~~~~~~~~~~~~~~~
# 157|
# 158| if (gdk_screen_get_rgba_visual (gtk_widget_get_screen (widget)) &&
# 159|-> gtk_widget_is_composited (widget))
# 160| cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, 0.0); /* transparent */
# 161| else
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testgtk.c: scope_hint: In function ‘on_composited_changed’
gtk-3.24.49/tests/testgtk.c:254:3: warning[-Wdeprecated-declarations]: ‘gtk_widget_is_composited’ is deprecated: Use 'gdk_screen_is_composited' instead
# 254 | gboolean is_composited = gtk_widget_is_composited (window);
# | ^~~~~~~~
gtk-3.24.49/gtk/gtkwidget.h:1247:10: note: declared here
# 1247 | gboolean gtk_widget_is_composited (GtkWidget *widget);
# | ^~~~~~~~~~~~~~~~~~~~~~~~
# 252| GtkLabel *label)
# 253| {
# 254|-> gboolean is_composited = gtk_widget_is_composited (window);
# 255|
# 256| if (is_composited)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testgtk.c: scope_hint: In function ‘pattern_set_bg’
gtk-3.24.49/tests/testgtk.c:453:3: warning[-Wdeprecated-declarations]: ‘gdk_window_set_background_rgba’ is deprecated
# 453 | gdk_window_set_background_rgba (child, &colors[level]);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gtk-3.24.49/gdk/gdkseat.h:28: included_from: Included from here.
gtk-3.24.49/gdk/gdkdisplay.h:33: included_from: Included from here.
gtk-3.24.49/gdk/gdkscreen.h:32: included_from: Included from here.
gtk-3.24.49/gdk/gdkapplaunchcontext.h:31: included_from: Included from here.
gtk-3.24.49/gdk/gdk.h:32: included_from: Included from here.
gtk-3.24.49/gtk/gtk.h:30: included_from: Included from here.
gtk-3.24.49/gdk/gdkwindow.h:787:15: note: declared here
# 787 | void gdk_window_set_background_rgba (GdkWindow *window,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 451|
# 452| gdk_window_set_user_data (child, widget);
# 453|-> gdk_window_set_background_rgba (child, &colors[level]);
# 454| }
# 455|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testgtk.c: scope_hint: In function ‘create_focus’
gtk-3.24.49/tests/testgtk.c:5389:7: warning[-Wdeprecated-declarations]: ‘gtk_container_set_focus_chain’ is deprecated
# 5389 | gtk_container_set_focus_chain (GTK_CONTAINER (table),
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gtk-3.24.49/gtk/gtkbin.h:33: included_from: Included from here.
gtk-3.24.49/gtk/gtkwindow.h:35: included_from: Included from here.
gtk-3.24.49/gtk/gtkcontainer.h:177:10: note: declared here
# 177 | void gtk_container_set_focus_chain (GtkContainer *container,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 5387| gtk_container_add (GTK_CONTAINER (frame), table);
# 5388|
# 5389|-> gtk_container_set_focus_chain (GTK_CONTAINER (table),
# 5390| list);
# 5391|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testgtk.c: scope_hint: In function ‘get_screen_corner’
gtk-3.24.49/tests/testgtk.c:7646:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 7646 | *x = gdk_screen_get_width (screen) - w;
# | ^
gtk-3.24.49/gdk/gdkscreen.h:58:14: note: declared here
# 58 | gint gdk_screen_get_width (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~
# 7644| {
# 7645| case GDK_GRAVITY_SOUTH_EAST:
# 7646|-> *x = gdk_screen_get_width (screen) - w;
# 7647| *y = gdk_screen_get_height (screen) - h;
# 7648| break;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testgtk.c:7647:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 7647 | *y = gdk_screen_get_height (screen) - h;
# | ^
gtk-3.24.49/gdk/gdkscreen.h:60:14: note: declared here
# 60 | gint gdk_screen_get_height (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~~
# 7645| case GDK_GRAVITY_SOUTH_EAST:
# 7646| *x = gdk_screen_get_width (screen) - w;
# 7647|-> *y = gdk_screen_get_height (screen) - h;
# 7648| break;
# 7649|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testgtk.c:7651:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 7651 | *x = gdk_screen_get_width (screen) - w;
# | ^
gtk-3.24.49/gdk/gdkscreen.h:58:14: note: declared here
# 58 | gint gdk_screen_get_width (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~
# 7649|
# 7650| case GDK_GRAVITY_NORTH_EAST:
# 7651|-> *x = gdk_screen_get_width (screen) - w;
# 7652| *y = 0;
# 7653| break;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testgtk.c:7657:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 7657 | *y = gdk_screen_get_height (screen) - h;
# | ^
gtk-3.24.49/gdk/gdkscreen.h:60:14: note: declared here
# 60 | gint gdk_screen_get_height (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~~
# 7655| case GDK_GRAVITY_SOUTH_WEST:
# 7656| *x = 0;
# 7657|-> *y = gdk_screen_get_height (screen) - h;
# 7658| break;
# 7659|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testgtk.c:7666:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 7666 | *x = (gdk_screen_get_width (screen) - w) / 2;
# | ^
gtk-3.24.49/gdk/gdkscreen.h:58:14: note: declared here
# 58 | gint gdk_screen_get_width (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~
# 7664|
# 7665| case GDK_GRAVITY_SOUTH:
# 7666|-> *x = (gdk_screen_get_width (screen) - w) / 2;
# 7667| *y = gdk_screen_get_height (screen) - h;
# 7668| break;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testgtk.c:7667:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 7667 | *y = gdk_screen_get_height (screen) - h;
# | ^
gtk-3.24.49/gdk/gdkscreen.h:60:14: note: declared here
# 60 | gint gdk_screen_get_height (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~~
# 7665| case GDK_GRAVITY_SOUTH:
# 7666| *x = (gdk_screen_get_width (screen) - w) / 2;
# 7667|-> *y = gdk_screen_get_height (screen) - h;
# 7668| break;
# 7669|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testgtk.c:7671:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 7671 | *x = (gdk_screen_get_width (screen) - w) / 2;
# | ^
gtk-3.24.49/gdk/gdkscreen.h:58:14: note: declared here
# 58 | gint gdk_screen_get_width (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~
# 7669|
# 7670| case GDK_GRAVITY_NORTH:
# 7671|-> *x = (gdk_screen_get_width (screen) - w) / 2;
# 7672| *y = 0;
# 7673| break;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testgtk.c:7677:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 7677 | *y = (gdk_screen_get_height (screen) - h) / 2;
# | ^
gtk-3.24.49/gdk/gdkscreen.h:60:14: note: declared here
# 60 | gint gdk_screen_get_height (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~~
# 7675| case GDK_GRAVITY_WEST:
# 7676| *x = 0;
# 7677|-> *y = (gdk_screen_get_height (screen) - h) / 2;
# 7678| break;
# 7679|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testgtk.c:7681:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 7681 | *x = gdk_screen_get_width (screen) - w;
# | ^
gtk-3.24.49/gdk/gdkscreen.h:58:14: note: declared here
# 58 | gint gdk_screen_get_width (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~
# 7679|
# 7680| case GDK_GRAVITY_EAST:
# 7681|-> *x = gdk_screen_get_width (screen) - w;
# 7682| *y = (gdk_screen_get_height (screen) - h) / 2;
# 7683| break;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testgtk.c:7682:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 7682 | *y = (gdk_screen_get_height (screen) - h) / 2;
# | ^
gtk-3.24.49/gdk/gdkscreen.h:60:14: note: declared here
# 60 | gint gdk_screen_get_height (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~~
# 7680| case GDK_GRAVITY_EAST:
# 7681| *x = gdk_screen_get_width (screen) - w;
# 7682|-> *y = (gdk_screen_get_height (screen) - h) / 2;
# 7683| break;
# 7684|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testgtk.c:7686:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
# 7686 | *x = (gdk_screen_get_width (screen) - w) / 2;
# | ^
gtk-3.24.49/gdk/gdkscreen.h:58:14: note: declared here
# 58 | gint gdk_screen_get_width (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~
# 7684|
# 7685| case GDK_GRAVITY_CENTER:
# 7686|-> *x = (gdk_screen_get_width (screen) - w) / 2;
# 7687| *y = (gdk_screen_get_height (screen) - h) / 2;
# 7688| break;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testgtk.c:7687:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
# 7687 | *y = (gdk_screen_get_height (screen) - h) / 2;
# | ^
gtk-3.24.49/gdk/gdkscreen.h:60:14: note: declared here
# 60 | gint gdk_screen_get_height (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~~
# 7685| case GDK_GRAVITY_CENTER:
# 7686| *x = (gdk_screen_get_width (screen) - w) / 2;
# 7687|-> *y = (gdk_screen_get_height (screen) - h) / 2;
# 7688| break;
# 7689|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testgtk.c: scope_hint: In function ‘scroll_test_adjustment_changed’
gtk-3.24.49/tests/testgtk.c:8929:3: warning[-Wdeprecated-declarations]: ‘gdk_window_process_updates’ is deprecated
# 8929 | gdk_window_process_updates (window, FALSE);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~
gtk-3.24.49/gdk/gdkwindow.h:1069:12: note: declared here
# 1069 | void gdk_window_process_updates (GdkWindow *window,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 8927| window = gtk_widget_get_window (widget);
# 8928| gdk_window_scroll (window, 0, dy);
# 8929|-> gdk_window_process_updates (window, FALSE);
# 8930| }
# 8931|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testiconview.c: scope_hint: In function ‘do_popup_menu’
gtk-3.24.49/tests/testiconview.c:381:3: warning[-Wdeprecated-declarations]: ‘gtk_menu_popup’ is deprecated: Use '(gtk_menu_popup_at_widget, gtk_menu_popup_at_pointer, gtk_menu_popup_at_rect)' instead
# 381 | gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL,
# | ^~~~~~~~~~~~~~
gtk-3.24.49/gtk/gtklabel.h:34: included_from: Included from here.
gtk-3.24.49/gtk/gtkaccellabel.h:35: included_from: Included from here.
gtk-3.24.49/gtk/gtk.h:33: included_from: Included from here.
gtk-3.24.49/tests/testiconview.c:18: included_from: Included from here.
gtk-3.24.49/gtk/gtkmenu.h:138:12: note: declared here
# 138 | void gtk_menu_popup (GtkMenu *menu,
# | ^~~~~~~~~~~~~~
# 379| }
# 380|
# 381|-> gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL,
# 382| button, event_time);
# 383| }
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testinput.c: scope_hint: In function ‘draw_brush’
gtk-3.24.49/tests/testinput.c:163:3: warning[-Wdeprecated-declarations]: ‘gdk_window_process_updates’ is deprecated
# 163 | gdk_window_process_updates (gtk_widget_get_window (widget), TRUE);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~
gtk-3.24.49/gdk/gdkseat.h:28: included_from: Included from here.
gtk-3.24.49/gdk/gdkdisplay.h:33: included_from: Included from here.
gtk-3.24.49/gdk/gdkscreen.h:32: included_from: Included from here.
gtk-3.24.49/gdk/gdkapplaunchcontext.h:31: included_from: Included from here.
gtk-3.24.49/gdk/gdk.h:32: included_from: Included from here.
gtk-3.24.49/gtk/gtk.h:30: included_from: Included from here.
gtk-3.24.49/tests/testinput.c:27: included_from: Included from here.
gtk-3.24.49/gdk/gdkwindow.h:1069:12: note: declared here
# 1069 | void gdk_window_process_updates (GdkWindow *window,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 161| update_rect.x, update_rect.y,
# 162| update_rect.width, update_rect.height);
# 163|-> gdk_window_process_updates (gtk_widget_get_window (widget), TRUE);
# 164| }
# 165|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testtoolbar.c: scope_hint: In function ‘popup_context_menu’
gtk-3.24.49/tests/testtoolbar.c:404:7: warning[-Wdeprecated-declarations]: ‘gtk_menu_popup’ is deprecated: Use '(gtk_menu_popup_at_widget, gtk_menu_popup_at_pointer, gtk_menu_popup_at_rect)' instead
# 404 | gtk_menu_popup (menu, NULL, NULL, position_function,
# | ^~~~~~~~~~~~~~
gtk-3.24.49/gtk/gtklabel.h:34: included_from: Included from here.
gtk-3.24.49/gtk/gtkaccellabel.h:35: included_from: Included from here.
gtk-3.24.49/gtk/gtk.h:33: included_from: Included from here.
gtk-3.24.49/tests/testtoolbar.c:21: included_from: Included from here.
gtk-3.24.49/gtk/gtkmenu.h:138:12: note: declared here
# 138 | void gtk_menu_popup (GtkMenu *menu,
# | ^~~~~~~~~~~~~~
# 402| position_data.y = y;
# 403|
# 404|-> gtk_menu_popup (menu, NULL, NULL, position_function,
# 405| &position_data, button_number, gtk_get_current_event_time());
# 406| }
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testtoolbar.c:408:5: warning[-Wdeprecated-declarations]: ‘gtk_menu_popup’ is deprecated: Use '(gtk_menu_popup_at_widget, gtk_menu_popup_at_pointer, gtk_menu_popup_at_rect)' instead
# 408 | gtk_menu_popup (menu, NULL, NULL, NULL, NULL, 0, gtk_get_current_event_time());
# | ^~~~~~~~~~~~~~
gtk-3.24.49/gtk/gtkmenu.h:138:12: note: declared here
# 138 | void gtk_menu_popup (GtkMenu *menu,
# | ^~~~~~~~~~~~~~
# 406| }
# 407| else
# 408|-> gtk_menu_popup (menu, NULL, NULL, NULL, NULL, 0, gtk_get_current_event_time());
# 409|
# 410| return TRUE;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testtreemodel.c: scope_hint: In function ‘test_run’
gtk-3.24.49/tests/testtreemodel.c:234:11: warning[-Wdeprecated-declarations]: ‘mallinfo’ is deprecated
# 234 | uordblks_before = mallinfo().uordblks;
# | ^~~~~~~~~~~~~~~
gtk-3.24.49/tests/testtreemodel.c:23: included_from: Included from here.
/usr/include/malloc.h:114:24: note: declared here
# 114 | extern struct mallinfo mallinfo (void) __THROW __MALLOC_DEPRECATED;
# | ^~~~~~~~
# 232| #ifdef HAVE_MALLINFO
# 233| /* Peculiar location of this, btw. -- MW. */
# 234|-> uordblks_before = mallinfo().uordblks;
# 235| #endif
# 236| g_timer_reset (timer);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testtreemodel.c:246:7: warning[-Wdeprecated-declarations]: ‘mallinfo’ is deprecated
# 246 | memused = (mallinfo().uordblks - uordblks_before) / 1024;
# | ^~~~~~~
/usr/include/malloc.h:114:24: note: declared here
# 114 | extern struct mallinfo mallinfo (void) __THROW __MALLOC_DEPRECATED;
# | ^~~~~~~~
# 244| elapsed = elapsed * 1000 / repeats;
# 245| #ifdef HAVE_MALLINFO
# 246|-> memused = (mallinfo().uordblks - uordblks_before) / 1024;
# 247| #else
# 248| memused = 0;
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testwindows.c: scope_hint: In function ‘create_window’
gtk-3.24.49/tests/testwindows.c:55:3: warning[-Wdeprecated-declarations]: ‘gdk_window_set_background_rgba’ is deprecated
# 55 | gdk_window_set_background_rgba (window, bg);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gtk-3.24.49/gdk/gdkseat.h:28: included_from: Included from here.
gtk-3.24.49/gdk/gdkdisplay.h:33: included_from: Included from here.
gtk-3.24.49/gdk/gdkscreen.h:32: included_from: Included from here.
gtk-3.24.49/gdk/gdkapplaunchcontext.h:31: included_from: Included from here.
gtk-3.24.49/gdk/gdk.h:32: included_from: Included from here.
gtk-3.24.49/gtk/gtk.h:30: included_from: Included from here.
gtk-3.24.49/tests/testwindows.c:1: included_from: Included from here.
gtk-3.24.49/gdk/gdkwindow.h:787:15: note: declared here
# 787 | void gdk_window_set_background_rgba (GdkWindow *window,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 53| }
# 54|
# 55|-> gdk_window_set_background_rgba (window, bg);
# 56| g_object_set_data_full (G_OBJECT (window), "color", bg, g_free);
# 57|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testwindows.c: scope_hint: In function ‘alpha_clicked’
gtk-3.24.49/tests/testwindows.c:723:7: warning[-Wdeprecated-declarations]: ‘gdk_window_set_background_rgba’ is deprecated
# 723 | gdk_window_set_background_rgba (window, color);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gtk-3.24.49/gdk/gdkwindow.h:787:15: note: declared here
# 787 | void gdk_window_set_background_rgba (GdkWindow *window,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 721| color->alpha = 1;
# 722|
# 723|-> gdk_window_set_background_rgba (window, color);
# 724| }
# 725|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testxinerama.c: scope_hint: In function ‘request’
gtk-3.24.49/tests/testxinerama.c:32:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_monitor_at_window’ is deprecated: Use 'gdk_display_get_monitor_at_window' instead
# 32 | gint i = gdk_screen_get_monitor_at_window (screen,
# | ^~~~
gtk-3.24.49/gdk/gdkapplaunchcontext.h:31: included_from: Included from here.
gtk-3.24.49/gdk/gdk.h:32: included_from: Included from here.
gtk-3.24.49/gtk/gtk.h:30: included_from: Included from here.
gtk-3.24.49/tests/testxinerama.c:21: included_from: Included from here.
gtk-3.24.49/gdk/gdkscreen.h:91:15: note: declared here
# 91 | gint gdk_screen_get_monitor_at_window (GdkScreen *screen,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 30| gchar *str;
# 31| GdkScreen *screen = gtk_widget_get_screen (widget);
# 32|-> gint i = gdk_screen_get_monitor_at_window (screen,
# 33| gtk_widget_get_window (widget));
# 34|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testxinerama.c:41:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_monitor_geometry’ is deprecated: Use 'gdk_monitor_get_geometry' instead
# 41 | gdk_screen_get_monitor_geometry (screen,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gtk-3.24.49/gdk/gdkscreen.h:78:14: note: declared here
# 78 | void gdk_screen_get_monitor_geometry (GdkScreen *screen,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 39| GdkRectangle monitor;
# 40|
# 41|-> gdk_screen_get_monitor_geometry (screen,
# 42| i, &monitor);
# 43| primary_monitor = gdk_screen_get_primary_monitor (screen);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testxinerama.c:43:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_primary_monitor’ is deprecated: Use 'gdk_display_get_primary_monitor' instead
# 43 | primary_monitor = gdk_screen_get_primary_monitor (screen);
# | ^~~~~~~~~~~~~~~
gtk-3.24.49/gdk/gdkscreen.h:76:14: note: declared here
# 76 | gint gdk_screen_get_primary_monitor (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 41| gdk_screen_get_monitor_geometry (screen,
# 42| i, &monitor);
# 43|-> primary_monitor = gdk_screen_get_primary_monitor (screen);
# 44|
# 45| str = g_strdup_printf ("<big><span foreground='white' background='black'>"
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testxinerama.c: scope_hint: In function ‘main’
gtk-3.24.49/tests/testxinerama.c:80:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_n_monitors’ is deprecated: Use 'gdk_display_get_n_monitors' instead
# 80 | num_monitors = gdk_screen_get_n_monitors (screen);
# | ^~~~~~~~~~~~
gtk-3.24.49/gdk/gdkscreen.h:74:14: note: declared here
# 74 | gint gdk_screen_get_n_monitors (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~
# 78| screen = gdk_screen_get_default ();
# 79|
# 80|-> num_monitors = gdk_screen_get_n_monitors (screen);
# 81| if (num_monitors == 1)
# 82| g_warning ("The default screen of the current display only has one monitor.");
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testxinerama.c:84:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_primary_monitor’ is deprecated: Use 'gdk_display_get_primary_monitor' instead
# 84 | primary_monitor = gdk_screen_get_primary_monitor (screen);
# | ^~~~~~~~~~~~~~~
gtk-3.24.49/gdk/gdkscreen.h:76:14: note: declared here
# 76 | gint gdk_screen_get_primary_monitor (GdkScreen *screen);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 82| g_warning ("The default screen of the current display only has one monitor.");
# 83|
# 84|-> primary_monitor = gdk_screen_get_primary_monitor (screen);
# 85|
# 86| for (i = 0; i < num_monitors; i++)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/tests/testxinerama.c:93:7: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_monitor_geometry’ is deprecated: Use 'gdk_monitor_get_geometry' instead
# 93 | gdk_screen_get_monitor_geometry (screen, i, &monitor);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gtk-3.24.49/gdk/gdkscreen.h:78:14: note: declared here
# 78 | void gdk_screen_get_monitor_geometry (GdkScreen *screen,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 91| window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
# 92|
# 93|-> gdk_screen_get_monitor_geometry (screen, i, &monitor);
# 94| gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);
# 95| gtk_window_move (GTK_WINDOW (window), (monitor.width - 200) / 2 + monitor.x,
Error: CPPCHECK_WARNING (CWE-457):
gtk-3.24.49/testsuite/a11y/state/state-record.c:95: error[legacyUninitvar]: Uninitialized variable: a
# 93| else
# 94| g_assert_not_reached ();
# 95|-> g_signal_connect (a, "state-change", G_CALLBACK (record_state_change), string);
# 96| }
# 97| }
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/testsuite/gdk/visual.c: scope_hint: In function ‘test_depth’
gtk-3.24.49/testsuite/gdk/visual.c:97:3: warning[-Wdeprecated-declarations]: ‘gdk_query_depths’ is deprecated
# 97 | gdk_query_depths (&depths, &n_depths);
# | ^~~~~~~~~~~~~~~~
gtk-3.24.49/gdk/gdk.h:63: included_from: Included from here.
gtk-3.24.49/testsuite/gdk/visual.c:1: included_from: Included from here.
gtk-3.24.49/gdk/gdkvisual.h:102:6: note: declared here
# 102 | void gdk_query_depths (gint **depths,
# | ^~~~~~~~~~~~~~~~
# 95| gboolean is_depth;
# 96|
# 97|-> gdk_query_depths (&depths, &n_depths);
# 98| g_assert_cmpint (n_depths, >, 0);
# 99| for (i = 0; i < n_depths; i++)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/testsuite/gdk/visual.c:104:7: warning[-Wdeprecated-declarations]: ‘gdk_visual_get_best_with_depth’ is deprecated
# 104 | visual = gdk_visual_get_best_with_depth (depths[i]);
# | ^~~~~~
gtk-3.24.49/gdk/gdkvisual.h:94:15: note: declared here
# 94 | GdkVisual* gdk_visual_get_best_with_depth (gint depth);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 102| g_assert_cmpint (depths[i], <=, 32);
# 103|
# 104|-> visual = gdk_visual_get_best_with_depth (depths[i]);
# 105|
# 106| g_assert_nonnull (visual);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/testsuite/gdk/visual.c:119:7: warning[-Wdeprecated-declarations]: ‘gdk_visual_get_best_with_depth’ is deprecated
# 119 | visual = gdk_visual_get_best_with_depth (i);
# | ^~~~~~
gtk-3.24.49/gdk/gdkvisual.h:94:15: note: declared here
# 94 | GdkVisual* gdk_visual_get_best_with_depth (gint depth);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 117| }
# 118|
# 119|-> visual = gdk_visual_get_best_with_depth (i);
# 120| if (!is_depth)
# 121| g_assert_null (visual);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/testsuite/gdk/visual.c: scope_hint: In function ‘test_type’
gtk-3.24.49/testsuite/gdk/visual.c:139:3: warning[-Wdeprecated-declarations]: ‘gdk_query_visual_types’ is deprecated
# 139 | gdk_query_visual_types (&types, &n_types);
# | ^~~~~~~~~~~~~~~~~~~~~~
gtk-3.24.49/gdk/gdkvisual.h:105:6: note: declared here
# 105 | void gdk_query_visual_types (GdkVisualType **visual_types,
# | ^~~~~~~~~~~~~~~~~~~~~~
# 137| gboolean is_type;
# 138|
# 139|-> gdk_query_visual_types (&types, &n_types);
# 140| g_assert_cmpint (n_types, >, 0);
# 141| for (i = 0; i < n_types; i++)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/testsuite/gdk/visual.c:146:7: warning[-Wdeprecated-declarations]: ‘gdk_visual_get_best_with_type’ is deprecated
# 146 | visual = gdk_visual_get_best_with_type (types[i]);
# | ^~~~~~
gtk-3.24.49/gdk/gdkvisual.h:96:15: note: declared here
# 96 | GdkVisual* gdk_visual_get_best_with_type (GdkVisualType visual_type);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 144| g_assert_cmpint (types[i], <=, GDK_VISUAL_DIRECT_COLOR);
# 145|
# 146|-> visual = gdk_visual_get_best_with_type (types[i]);
# 147|
# 148| g_assert_nonnull (visual);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/testsuite/gdk/visual.c:161:7: warning[-Wdeprecated-declarations]: ‘gdk_visual_get_best_with_type’ is deprecated
# 161 | visual = gdk_visual_get_best_with_type (i);
# | ^~~~~~
gtk-3.24.49/gdk/gdkvisual.h:96:15: note: declared here
# 96 | GdkVisual* gdk_visual_get_best_with_type (GdkVisualType visual_type);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 159| }
# 160|
# 161|-> visual = gdk_visual_get_best_with_type (i);
# 162| if (!is_type)
# 163| g_assert_null (visual);
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/testsuite/gtk/action.c: scope_hint: In function ‘g_test_action_muxer’
gtk-3.24.49/testsuite/gtk/action.c:123:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 123 | g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# | ^~~~~~~~
/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.
gtk-3.24.49/redhat-linux-build/gdk/gdkconfig.h:8: included_from: Included from here.
gtk-3.24.49/gdk/gdk.h:30: included_from: Included from here.
gtk-3.24.49/gtk/gtk.h:30: included_from: Included from here.
gtk-3.24.49/testsuite/gtk/action.c:20: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:396:23: note: declared here
# 396 | gboolean g_strv_equal (const gchar * const *strv1,
# | ^~~~~~~~~~~~
# 121|
# 122| prefixes = gtk_widget_list_action_prefixes (window);
# 123|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# 124| g_free (prefixes);
# 125|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/testsuite/gtk/action.c:127:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 127 | g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# | ^~~~~~~~
/usr/include/glib-2.0/glib/gstrfuncs.h:396:23: note: declared here
# 396 | gboolean g_strv_equal (const gchar * const *strv1,
# | ^~~~~~~~~~~~
# 125|
# 126| prefixes = gtk_widget_list_action_prefixes (box);
# 127|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# 128| g_free (prefixes);
# 129|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/testsuite/gtk/action.c:131:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 131 | g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# | ^~~~~~~~
/usr/include/glib-2.0/glib/gstrfuncs.h:396:23: note: declared here
# 396 | gboolean g_strv_equal (const gchar * const *strv1,
# | ^~~~~~~~~~~~
# 129|
# 130| prefixes = gtk_widget_list_action_prefixes (button);
# 131|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# 132| g_free (prefixes);
# 133|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/testsuite/gtk/action.c:153:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 153 | g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# | ^~~~~~~~
/usr/include/glib-2.0/glib/gstrfuncs.h:396:23: note: declared here
# 396 | gboolean g_strv_equal (const gchar * const *strv1,
# | ^~~~~~~~~~~~
# 151|
# 152| prefixes = gtk_widget_list_action_prefixes (window);
# 153|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# 154| g_free (prefixes);
# 155|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/testsuite/gtk/action.c:157:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 157 | g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# | ^~~~~~~~
/usr/include/glib-2.0/glib/gstrfuncs.h:396:23: note: declared here
# 396 | gboolean g_strv_equal (const gchar * const *strv1,
# | ^~~~~~~~~~~~
# 155|
# 156| prefixes = gtk_widget_list_action_prefixes (box);
# 157|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# 158| g_free (prefixes);
# 159|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/testsuite/gtk/action.c:161:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 161 | g_assert (g_strv_equal ((const char * const *)prefixes, expected1));
# | ^~~~~~~~
/usr/include/glib-2.0/glib/gstrfuncs.h:396:23: note: declared here
# 396 | gboolean g_strv_equal (const gchar * const *strv1,
# | ^~~~~~~~~~~~
# 159|
# 160| prefixes = gtk_widget_list_action_prefixes (button);
# 161|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected1));
# 162| g_free (prefixes);
# 163|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/testsuite/gtk/action.c:183:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 183 | g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# | ^~~~~~~~
/usr/include/glib-2.0/glib/gstrfuncs.h:396:23: note: declared here
# 396 | gboolean g_strv_equal (const gchar * const *strv1,
# | ^~~~~~~~~~~~
# 181|
# 182| prefixes = gtk_widget_list_action_prefixes (window);
# 183|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected));
# 184| g_free (prefixes);
# 185|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/testsuite/gtk/action.c:187:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 187 | g_assert (g_strv_equal ((const char * const *)prefixes, expected2));
# | ^~~~~~~~
/usr/include/glib-2.0/glib/gstrfuncs.h:396:23: note: declared here
# 396 | gboolean g_strv_equal (const gchar * const *strv1,
# | ^~~~~~~~~~~~
# 185|
# 186| prefixes = gtk_widget_list_action_prefixes (box);
# 187|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected2));
# 188| g_free (prefixes);
# 189|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/testsuite/gtk/action.c:191:3: warning[-Wdeprecated-declarations]: ‘g_strv_equal’ is deprecated: Not available before 2.60
# 191 | g_assert (g_strv_equal ((const char * const *)prefixes, expected3));
# | ^~~~~~~~
/usr/include/glib-2.0/glib/gstrfuncs.h:396:23: note: declared here
# 396 | gboolean g_strv_equal (const gchar * const *strv1,
# | ^~~~~~~~~~~~
# 189|
# 190| prefixes = gtk_widget_list_action_prefixes (button);
# 191|-> g_assert (g_strv_equal ((const char * const *)prefixes, expected3));
# 192| g_free (prefixes);
# 193|
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/testsuite/gtk/keyhash.c: scope_hint: In function ‘test_basic’
gtk-3.24.49/testsuite/gtk/keyhash.c:39:3: warning[-Wdeprecated-declarations]: ‘gdk_keymap_get_default’ is deprecated: Use 'gdk_keymap_get_for_display' instead
# 39 | hash = _gtk_key_hash_new (gdk_keymap_get_default (), counting_destroy);
# | ^~~~
gtk-3.24.49/gdk/gdk.h:48: included_from: Included from here.
gtk-3.24.49/gtk/gtk.h:30: included_from: Included from here.
gtk-3.24.49/testsuite/gtk/keyhash.c:19: included_from: Included from here.
gtk-3.24.49/gdk/gdkkeys.h:84:12: note: declared here
# 84 | GdkKeymap* gdk_keymap_get_default (void);
# | ^~~~~~~~~~~~~~~~~~~~~~
# 37|
# 38| count = 0;
# 39|-> hash = _gtk_key_hash_new (gdk_keymap_get_default (), counting_destroy);
# 40|
# 41| keys = _gtk_key_hash_lookup (hash, 0, 0, 0, 0);
Error: COMPILER_WARNING (CWE-252):
gtk-3.24.49/testsuite/reftests/gtk-reftest.c: scope_hint: In function ‘main’
gtk-3.24.49/testsuite/reftests/gtk-reftest.c:454:3: warning[-Wunused-result]: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’
# 454 | chdir (basedir);
# | ^~~~~~~~~~~~~~~
# 452| * "file" property of GtkImage as a relative path in builder files.
# 453| */
# 454|-> chdir (basedir);
# 455|
# 456| return g_test_run ();
Error: CPPCHECK_WARNING (CWE-682):
gtk-3.24.49/testsuite/reftests/reftest-compare.c:98: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
# 96| const guint32 *row_a = (const guint32 *) (buf_a + y * stride_a);
# 97| const guint32 *row_b = (const guint32 *) (buf_b + y * stride_b);
# 98|-> guint32 *row = (guint32 *) (buf_diff + y * stride_diff);
# 99|
# 100| for (x = 0; x < width; x++)
Error: COMPILER_WARNING (CWE-477):
gtk-3.24.49/testsuite/reftests/reftest-snapshot.c: scope_hint: In function ‘snapshot_widget’
gtk-3.24.49/testsuite/reftests/reftest-snapshot.c:148:7: warning[-Wdeprecated-declarations]: ‘gdk_window_get_background_pattern’ is deprecated
# 148 | bg = gdk_window_get_background_pattern (gtk_widget_get_window (widget));
# | ^~
gtk-3.24.49/gdk/gdkseat.h:28: included_from: Included from here.
gtk-3.24.49/gdk/gdkdisplay.h:33: included_from: Included from here.
gtk-3.24.49/gdk/gdkscreen.h:32: included_from: Included from here.
gtk-3.24.49/gdk/gdkapplaunchcontext.h:31: included_from: Included from here.
gtk-3.24.49/gdk/gdk.h:32: included_from: Included from here.
gtk-3.24.49/gtk/gtk.h:30: included_from: Included from here.
gtk-3.24.49/testsuite/reftests/reftest-snapshot.h:21: included_from: Included from here.
gtk-3.24.49/testsuite/reftests/reftest-snapshot.c:23: included_from: Included from here.
gtk-3.24.49/gdk/gdkwindow.h:793:18: note: declared here
# 793 | cairo_pattern_t *gdk_window_get_background_pattern (GdkWindow *window);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 146| break;
# 147| case SNAPSHOT_DRAW:
# 148|-> bg = gdk_window_get_background_pattern (gtk_widget_get_window (widget));
# 149| if (bg)
# 150| {