(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/profile_dlg.c) |
| |
| 879 | | | while ((file = ws_dir_read_name(dir)) != NULL) { |
| 880 | | | name = ws_dir_get_name(file); |
| 881 | | | |
| 882 | | | if (profile_exists(name)) { |
| 883 | | | = (name); |
| 884 | | | if (strcmp (name, profile_name)==0) { |
| 885 | | | |
| 886 | | | ((), TRUE);
x /usr/include/gtk-2.0/gtk/gtkcheckmenuitem.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)) |
| |
|
| 887 | | | } |
| 888 | | | g_object_set (G_OBJECT(), "draw-as-radio", TRUE, NULL);
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)) |
| |
|
| 889 | | | g_signal_connect (, "activate", G_CALLBACK(select_profile_cb), g_strdup (name));
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 select_profile_cb to this new type could lead to unsafe program behavior. - There were previously 2 arguments, now there are 0.
|
|
| 890 | | | ( (), );
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)) |
| |
|
| 891 | | | gtk_widget_show (); |
| 892 | | | } |
| 893 | | | } |
| 894 | | | } |
| 895 | | | |
| 896 | | | ((), NULL, NULL, NULL, NULL,
x /usr/include/gtk-2.0/gtk/gtkmenu.h |
| |
42 | #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)) |
| |
|
| 897 | | | bevent->button, bevent->time); |
| 898 | | | |
| 899 | | | return TRUE; |
| |