(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/service_response_time_table.c) |
| |
| 315 | | | gtk_clist_set_column_width(rst->table, 1, 160); |
| 316 | | | gtk_clist_set_column_width(rst->table, 2, 50); |
| 317 | | | gtk_clist_set_column_width(rst->table, 3, 60); |
| 318 | | | gtk_clist_set_column_width(rst->table, 4, 60); |
| 319 | | | gtk_clist_set_column_width(rst->table, 5, 60); |
| 320 | | | |
| 321 | | | gtk_clist_set_shadow_type(rst->table, GTK_SHADOW_IN); |
| 322 | | | gtk_clist_column_titles_show(rst->table); |
| 323 | | | gtk_container_add(GTK_CONTAINER(rst->scrolled_window), (GtkWidget *)rst->table);
x /usr/include/gtk-2.0/gtk/gtkcontainer.h |
| |
42 | #define GTK_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CONTAINER, GtkContainer)) |
| |
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/gtkcontainer.h |
| |
41 | #define GTK_TYPE_CONTAINER (gtk_container_get_type ()) |
| |
|
| 324 | | | |
| 325 | | | g_signal_connect(rst->table, "click-column", G_CALLBACK(srt_click_column_cb), col_arrows);
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 srt_click_column_cb to this new type could lead to unsafe program behavior. - There were previously 3 arguments, now there are 0.
|
|
| 326 | | | |
| 327 | | | gtk_widget_show(GTK_WIDGET(rst->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 ()) |
| |
|
| 328 | | | gtk_widget_show(rst->scrolled_window); |
| 329 | | | |
| 330 | | | |
| 331 | | | rst->num_procs=num_procs; |
| 332 | | | rst->procedures=g_malloc(sizeof(srt_procedure_t)*num_procs); |
| 333 | | | for(i=0;i<num_procs;i++){ |
| 334 | | | rst->procedures[i].stats.num=0; |
| 335 | | | rst->procedures[i].stats.min.secs=0; |
| |