(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/rpc_stat.c) |
| |
| 270 | | | gtk_box_pack_start(GTK_BOX(vbox), stat_label, FALSE, FALSE, 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 ()) |
| |
|
| 271 | | | |
| 272 | | | filter_string = g_strdup_printf("Filter: %s", filter ? filter : ""); |
| 273 | | | filter_label=gtk_label_new(filter_string); |
| 274 | | | g_free(filter_string); |
| 275 | | | gtk_label_set_line_wrap(GTK_LABEL(filter_label), TRUE);
x /usr/include/gtk-2.0/gtk/gtklabel.h |
| |
42 | #define GTK_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LABEL, GtkLabel)) |
| |
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/gtklabel.h |
| |
41 | #define GTK_TYPE_LABEL (gtk_label_get_type ()) |
| |
|
| 276 | | | gtk_box_pack_start(GTK_BOX(vbox), filter_label, FALSE, FALSE, 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 ()) |
| |
|
| 277 | | | |
| 278 | | | rpc_min_proc=-1; |
| 279 | | | rpc_max_proc=-1; |
| 280 | | | g_hash_table_foreach(rpc_procs, (GHFunc)rpcstat_find_procs, NULL); |
Dangerous Function Cast
Casting rpcstat_find_procs to this new type could lead to unsafe program behavior. - The function return types have different sizes.
- The previous return type was void* which has size 4.
- The new return type is void which has size 0.
|
|
| 281 | | | rs->num_procedures=rpc_max_proc+1; |
| 282 | | | |
| 283 | | | |
| 284 | | | gtk_widget_show_all(rs->win); |
| 285 | | | |
| 286 | | | init_srt_table(&rs->srt_table, rpc_max_proc+1, vbox, hfi->abbrev); |
| 287 | | | |
| 288 | | | for(i=0;i<rs->num_procedures;i++){ |
| 289 | | | init_srt_table_row(&rs->srt_table, i, rpc_proc_name(rpc_program, rpc_version, i)); |
| 290 | | | } |
| |