(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/main_welcome.c) |
| |
| 899 | | | "User's Guide", |
| 900 | | | "The User's Guide (local version, if installed)", |
| 901 | | | "Locally installed (if installed) otherwise online version", |
| 902 | | | G_CALLBACK(), GINT_TO_POINTER(HELP_CONTENT));
x /usr/include/glib-2.0/gobject/gclosure.h |
| |
72 | #define G_CALLBACK(f) ((GCallback) (f)) |
| |
|
| 903 | | | gtk_box_pack_start(GTK_BOX(topic_to_fill), item_hb, FALSE, FALSE, 5);
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 ()) |
| |
|
| 904 | | | |
| 905 | | | item_hb = welcome_button(WIRESHARK_STOCK_WIKI, |
| 906 | | | "Security", |
| 907 | | | "Work with Wireshark as securely as possible", |
| 908 | | | topic_online_url(ONLINEPAGE_SECURITY), |
| 909 | | | G_CALLBACK(), GINT_TO_POINTER(ONLINEPAGE_SECURITY));
x /usr/include/glib-2.0/gobject/gclosure.h |
| |
72 | #define G_CALLBACK(f) ((GCallback) (f)) |
| |
|
Dangerous Function Cast
Casting to this new type could lead to unsafe program behavior. - There were previously 3 arguments, now there are 0.
|
|
| 910 | | | gtk_box_pack_start(GTK_BOX(topic_to_fill), item_hb, FALSE, FALSE, 5);
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 ()) |
| |
|
| 911 | | | |
| 912 | | | #if 0 |
| 913 | | | |
| 914 | | | |
| 915 | | | topic_vb = welcome_topic_new("Updates", &topic_to_fill); |
| 916 | | | gtk_box_pack_start(GTK_BOX(column_vb), topic_vb, TRUE, TRUE, 0); |
| 917 | | | |
| 918 | | | label_text = g_strdup("<span foreground=\"black\">No updates available!</span>"); |
| 919 | | | w = gtk_label_new(label_text); |
| |