(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/dcerpc_stat.c) |
| |
| 421 | | | dcerpcstat_program_select(GtkWidget *item _U_, gpointer key) |
| 422 | | | { |
| 423 | | | dcerpc_uuid_key *k=(dcerpc_uuid_key *)key; |
| 424 | | | |
| 425 | | | dcerpc_uuid_program=&k->uuid; |
| 426 | | | |
| 427 | | | |
| 428 | | | dcerpc_version=0xffff; |
| 429 | | | gtk_object_destroy(GTK_OBJECT());
x /usr/include/gtk-2.0/gtk/gtkobject.h |
| |
48 | #define GTK_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_OBJECT, GtkObject)) |
| |
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/gtkobject.h |
| |
47 | #define GTK_TYPE_OBJECT (gtk_object_get_type ()) |
| |
|
| 430 | | | =(); |
| 431 | | | g_hash_table_foreach(dcerpc_uuids, (GHFunc)dcerpcstat_find_vers, NULL); |
Dangerous Function Cast
Casting dcerpcstat_find_vers 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.
|
|
| 432 | | | ((vers_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)) |
| |
|
| 433 | | | } |
| 434 | | | |
| 435 | | | |
| 436 | | | static GtkWidget *; |
| 437 | | | static GtkWidget *; |
| 438 | | | static GtkWidget *; |
| 439 | | | static int program_subitem_index; |
| 440 | | | static const char *; |
| 441 | | | static void |
| |