(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/expert_dlg.c) |
| |
| 358 | | | GtkWidget *column_lb; |
| 359 | | | GdkBitmap *ascend_bm, *descend_bm; |
| 360 | | | GdkPixmap *ascend_pm, *descend_pm; |
| 361 | | | const char *default_titles[] = { "No.", "Sever.", "Group", "Protocol", "Summary" }; |
| 362 | | | |
| 363 | | | |
| 364 | | | etd->scrolled_window=scrolled_window_new(NULL, NULL); |
| 365 | | | gtk_box_pack_start(GTK_BOX(vbox), etd->scrolled_window, TRUE, TRUE, 0);
x /usr/include/gtk-2.0/gtk/gtkbox.h |
| |
42 | #define GTK_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BOX, GtkBox)) |
| |
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/gtkbox.h |
| |
41 | #define GTK_TYPE_BOX (gtk_box_get_type ()) |
| |
|
| 366 | | | |
| 367 | | | etd->table=(GtkCList *)gtk_clist_new(5); |
| 368 | | | g_signal_connect(etd->table, "select-row", G_CALLBACK(select_row_cb), etd);
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/gclosure.h |
| |
72 | #define G_CALLBACK(f) ((GCallback) (f)) |
| |
|
Dangerous Function Cast
Casting select_row_cb to this new type could lead to unsafe program behavior. - There were previously 5 arguments, now there are 0.
|
|
| 369 | | | |
| 370 | | | gtk_widget_show(GTK_WIDGET(etd->table));
x /usr/include/gtk-2.0/gtk/gtkwidget.h |
| |
137 | #define GTK_WIDGET(widget) (G_TYPE_CHECK_INSTANCE_CAST ((widget), GTK_TYPE_WIDGET, GtkWidget)) |
| |
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/gtkwidget.h |
| |
136 | #define GTK_TYPE_WIDGET (gtk_widget_get_type ()) |
| |
|
| 371 | | | gtk_widget_show(etd->scrolled_window); |
| 372 | | | |
| 373 | | | col_arrows = (column_arrows *) g_malloc(sizeof(column_arrows) * 5); |
| 374 | | | win_style = gtk_widget_get_style(etd->scrolled_window); |
| 375 | | | ascend_pm = gdk_pixmap_create_from_xpm_d(etd->scrolled_window->window, |
| 376 | | | &ascend_bm, |
| 377 | | | &win_style->bg[GTK_STATE_NORMAL], |
| 378 | | | (gchar **)clist_ascend_xpm); |
| |