(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/main_welcome.c) |
| |
| 820 | | | "How to Capture", |
| 821 | | | "Step by step to a successful capture setup", |
| 822 | | | topic_online_url(ONLINEPAGE_CAPTURE_SETUP), |
| 823 | | | G_CALLBACK(), GINT_TO_POINTER(ONLINEPAGE_CAPTURE_SETUP));
x /usr/include/glib-2.0/gobject/gclosure.h |
| |
72 | #define G_CALLBACK(f) ((GCallback) (f)) |
| |
|
| 824 | | | 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 ()) |
| |
|
| 825 | | | |
| 826 | | | item_hb = welcome_button(WIRESHARK_STOCK_WIKI, |
| 827 | | | "Network Media", |
| 828 | | | "Specific information for capturing on: Ethernet, WLAN, ...", |
| 829 | | | topic_online_url(ONLINEPAGE_NETWORK_MEDIA), |
| 830 | | | G_CALLBACK(), GINT_TO_POINTER(ONLINEPAGE_NETWORK_MEDIA));
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.
|
|
| 831 | | | 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 ()) |
| |
|
| 832 | | | #else |
| 833 | | | label_text = g_strdup("<span foreground=\"black\">Capturing is not compiled into this version of Wireshark!</span>"); |
| 834 | | | w = gtk_label_new(label_text); |
| 835 | | | gtk_label_set_markup(GTK_LABEL(w), label_text); |
| 836 | | | g_free (label_text); |
| 837 | | | gtk_misc_set_alignment (GTK_MISC(w), 0.0f, 0.0f); |
| 838 | | | gtk_box_pack_start(GTK_BOX(topic_to_fill), w, FALSE, FALSE, 5); |
| 839 | | | #endif |
| 840 | | | |
| |