(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/main_menu.c) |
| |
| 3044 | | | |
| 3045 | | | if (preferences) { |
| 3046 | | | = (); |
| 3047 | | | ((), );
x /usr/include/gtk-2.0/gtk/gtkmenuitem.h |
| |
41 | #define (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), , )) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
482 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
1678 | # define _G_TYPE_CIC(ip, gt, ct) \ |
1679 | ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) |
| |
|
| 3048 | | | |
| 3049 | | | label = g_strdup_printf ("%s Preferences...", prefs->description); |
| 3050 | | | = (label); |
| 3051 | | | ((),
x /usr/include/gtk-2.0/gtk/gtkimagemenuitem.h |
| |
41 | #define (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), , )) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
482 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
1678 | # define _G_TYPE_CIC(ip, gt, ct) \ |
1679 | ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) |
| |
|
| 3052 | | | gtk_image_new_from_stock(GTK_STOCK_PREFERENCES, ));
x /usr/include/gtk-2.0/gtk/gtkstock.h |
| |
741 | #define GTK_STOCK_PREFERENCES "gtk-preferences" |
| |
|
| 3053 | | | ((), );
x /usr/include/gtk-2.0/gtk/gtkmenushell.h |
| |
41 | #define (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), , )) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
482 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
1678 | # define _G_TYPE_CIC(ip, gt, ct) \ |
1679 | ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) |
| |
|
| 3054 | | | g_signal_connect_swapped(GTK_OBJECT(), "activate",
x /usr/include/glib-2.0/gobject/gsignal.h |
| |
452 | #define g_signal_connect_swapped(instance, detailed_signal, c_handler, data) \ |
453 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, G_CONNECT_SWAPPED) |
| |
x /usr/include/gtk-2.0/gtk/gtkobject.h |
| |
48 | #define GTK_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_OBJECT, GtkObject)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
482 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
1678 | # define _G_TYPE_CIC(ip, gt, ct) \ |
1679 | ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) |
| |
x /usr/include/gtk-2.0/gtk/gtkobject.h |
| |
47 | #define GTK_TYPE_OBJECT (gtk_object_get_type ()) |
| |
|
| 3055 | | | G_CALLBACK(properties_cb), (GtkObject *) );
x /usr/include/glib-2.0/gobject/gclosure.h |
| |
72 | #define G_CALLBACK(f) ((GCallback) (f)) |
| |
|
Dangerous Function Cast
Casting properties_cb to this new type could lead to unsafe program behavior. - There were previously 2 arguments, now there are 0.
|
|
| 3056 | | | gtk_widget_show (); |
| 3057 | | | g_free (label); |
| 3058 | | | |
| 3059 | | | = (); |
| 3060 | | | ((), );
x /usr/include/gtk-2.0/gtk/gtkmenushell.h |
| |
41 | #define (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), , )) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
482 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
1678 | # define _G_TYPE_CIC(ip, gt, ct) \ |
1679 | ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) |
| |
|
| 3061 | | | gtk_widget_show (); |
| 3062 | | | |
| 3063 | | | prefs_pref_foreach(prefs, , prefs); |
| 3064 | | | } else { |
| 3065 | | | |
| |