(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/io_stat.c) |
| |
| 1665 | | | |
| 1666 | | | static void |
| 1667 | | | (io_stat_t *io, GtkWidget *) |
| 1668 | | | { |
| 1669 | | | GtkWidget *; |
| 1670 | | | int i; |
| 1671 | | | |
| 1672 | | | for(i=0;i<MAX_COUNT_TYPES;i++){ |
| 1673 | | | =(count_type_names[i]); |
| 1674 | | | g_object_set_data(G_OBJECT(), "count_type", GINT_TO_POINTER(i));
x /usr/include/glib-2.0/gobject/gobject.h |
| |
52 | #define G_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), G_TYPE_OBJECT, GObject)) |
| |
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/glib-2.0/gobject/gtype.h |
| |
181 | #define G_TYPE_OBJECT G_TYPE_MAKE_FUNDAMENTAL (20) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
222 | #define G_TYPE_MAKE_FUNDAMENTAL(x) ((GType) ((x) << G_TYPE_FUNDAMENTAL_SHIFT)) |
| |
|
| 1675 | | | g_signal_connect(, "activate", G_CALLBACK(count_type_select), io);
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 count_type_select to this new type could lead to unsafe program behavior. - There were previously 2 arguments, now there are 0.
|
|
| 1676 | | | gtk_widget_show(); |
| 1677 | | | ((), );
x /usr/include/gtk-2.0/gtk/gtkmenushell.h |
| |
41 | #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)) |
| |
|
| 1678 | | | } |
| 1679 | | | return; |
| 1680 | | | } |
| 1681 | | | |
| 1682 | | | static void |
| 1683 | | | (io_stat_t *io, GtkWidget *box, const char *name, void (*func)(io_stat_t *io, GtkWidget *)) |
| 1684 | | | { |
| 1685 | | | GtkWidget *hbox; |
| |