(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/dcerpc_stat.c) |
| |
| 587 | | | =(); |
| 588 | | | current_uuid_key=NULL; |
| 589 | | | current_uuid_value=NULL; |
| 590 | | | |
| 591 | | | =NULL; |
| 592 | | | =NULL; |
| 593 | | | program_subitem_index=0; |
| 594 | | | do { |
| 595 | | | new_uuid_key=NULL; |
| 596 | | | new_uuid_value=NULL; |
| 597 | | | g_hash_table_foreach(dcerpc_uuids, (GHFunc)dcerpcstat_find_next_program, NULL); |
Dangerous Function Cast
Casting dcerpcstat_find_next_program 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.
|
|
| 598 | | | if(new_uuid_key){ |
| 599 | | | (new_uuid_key, new_uuid_value); |
| 600 | | | } |
| 601 | | | current_uuid_key=new_uuid_key; |
| 602 | | | current_uuid_value=new_uuid_value; |
| 603 | | | } while(new_uuid_key!=NULL); |
| 604 | | | |
| 605 | | | ((prog_opt), );
x /usr/include/gtk-2.0/gtk/gtkoptionmenu.h |
| |
38 | #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)) |
| |
|
| 606 | | | gtk_box_pack_start(GTK_BOX(prog_box), prog_opt, 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 ()) |
| |
|
| 607 | | | gtk_widget_show(prog_opt); |
| |