(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/capture_if_dlg.c) |
| |
| 690 | | | if_dlg_data->capture_bt = gtk_button_new_from_stock(WIRESHARK_STOCK_CAPTURE_START);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/stock_icons.h |
| |
33 | #define WIRESHARK_STOCK_CAPTURE_START "Wireshark_Stock_CaptureStart" |
| |
|
| 691 | | | g_signal_connect(if_dlg_data->capture_bt, "clicked", G_CALLBACK(capture_do_cb), if_dlg_data);
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)) |
| |
|
| 692 | | | tmp_str = g_strdup_printf("Immediately start a capture from this interface:\n\n%s", if_tool_str->str); |
| 693 | | | gtk_tooltips_set_tip(tooltips, if_dlg_data->capture_bt, |
| 694 | | | tmp_str, NULL); |
| 695 | | | g_free(tmp_str); |
| 696 | | | gtk_table_attach_defaults(GTK_TABLE(if_tb), if_dlg_data->capture_bt, 6, 7, row, row+1);
x /usr/include/gtk-2.0/gtk/gtktable.h |
| |
41 | #define GTK_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TABLE, GtkTable)) |
| |
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/gtktable.h |
| |
40 | #define GTK_TYPE_TABLE (gtk_table_get_type ()) |
| |
|
| 697 | | | |
| 698 | | | |
| 699 | | | if_dlg_data->prepare_bt = gtk_button_new_from_stock(WIRESHARK_STOCK_CAPTURE_OPTIONS);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/stock_icons.h |
| |
32 | #define WIRESHARK_STOCK_CAPTURE_OPTIONS "Wireshark_Stock_CaptureOptionss" |
| |
|
| 700 | | | g_signal_connect(if_dlg_data->prepare_bt, "clicked", G_CALLBACK(capture_prepare_cb), if_dlg_data);
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 capture_prepare_cb to this new type could lead to unsafe program behavior. - There were previously 2 arguments, now there are 0.
|
|
| 701 | | | gtk_tooltips_set_tip(tooltips, if_dlg_data->prepare_bt, |
| 702 | | | "Open the capture options dialog with this interface selected.", NULL); |
| 703 | | | gtk_table_attach_defaults(GTK_TABLE(if_tb), if_dlg_data->prepare_bt, 7, 8, row, row+1);
x /usr/include/gtk-2.0/gtk/gtktable.h |
| |
41 | #define GTK_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TABLE, GtkTable)) |
| |
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/gtktable.h |
| |
40 | #define GTK_TYPE_TABLE (gtk_table_get_type ()) |
| |
|
| 704 | | | |
| 705 | | | |
| 706 | | | #ifdef _WIN32 |
| 707 | | | if_dlg_data->details_bt = gtk_button_new_from_stock(WIRESHARK_STOCK_CAPTURE_DETAILS); |
| 708 | | | gtk_tooltips_set_tip(tooltips, if_dlg_data->details_bt, |
| 709 | | | "Open the capture details dialog of this interface.", NULL); |
| 710 | | | gtk_table_attach_defaults(GTK_TABLE(if_tb), if_dlg_data->details_bt, 8, 9, row, row+1); |
| |