(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/iax2_analysis.c) |
| |
| 3137 | | | gtk_tree_view_append_column (list_view, column); |
| 3138 | | | |
| 3139 | | | |
| 3140 | | | gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(list_view), TRUE);
x /usr/include/gtk-2.0/gtk/gtktreeview.h |
| |
49 | #define GTK_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_VIEW, GtkTreeView)) |
| |
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/gtktreeview.h |
| |
48 | #define GTK_TYPE_TREE_VIEW (gtk_tree_view_get_type ()) |
| |
|
| 3141 | | | (GTK_TREE_VIEW(list_view), TRUE);
x /usr/include/gtk-2.0/gtk/gtktreeview.h |
| |
49 | #define GTK_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_VIEW, GtkTreeView)) |
| |
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/gtktreeview.h |
| |
48 | #define GTK_TYPE_TREE_VIEW (gtk_tree_view_get_type ()) |
| |
|
| 3142 | | | |
| 3143 | | | |
| 3144 | | | selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(list));
x /usr/include/gtk-2.0/gtk/gtktreeview.h |
| |
49 | #define GTK_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_VIEW, GtkTreeView)) |
| |
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/gtktreeview.h |
| |
48 | #define GTK_TYPE_TREE_VIEW (gtk_tree_view_get_type ()) |
| |
|
| 3145 | | | gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE); |
| 3146 | | | |
| 3147 | | | g_signal_connect (G_OBJECT (selection), "changed",
x /usr/include/glib-2.0/gobject/gsignal.h |
| |
421 | #define g_signal_connect(instance, detailed_signal, c_handler, data) \ |
422 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) |
| |
x /usr/include/glib-2.0/gobject/gobject.h |
| |
52 | #define G_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), G_TYPE_OBJECT, GObject)) |
| |
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/glib-2.0/gobject/gtype.h |
| |
181 | #define G_TYPE_OBJECT G_TYPE_MAKE_FUNDAMENTAL (20) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
222 | #define G_TYPE_MAKE_FUNDAMENTAL(x) ((GType) ((x) << G_TYPE_FUNDAMENTAL_SHIFT)) |
| |
|
| 3148 | | | G_CALLBACK (on_list_select_row),
x /usr/include/glib-2.0/gobject/gclosure.h |
| |
72 | #define G_CALLBACK(f) ((GCallback) (f)) |
| |
|
| 3149 | | | user_data); |
Dangerous Function Cast
Casting on_list_select_row to this new type could lead to unsafe program behavior. - There were previously 2 arguments, now there are 0.
|
|
| 3150 | | | return list; |
| 3151 | | | } |
| 3152 | | | |
| 3153 | | | |
| 3154 | | | |
| 3155 | | | |
| 3156 | | | |
| 3157 | | | static void create_iax2_dialog(user_data_t* user_data) |
| 3158 | | | { |
| 3159 | | | GtkWidget *window = NULL; |
| |