(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/capture_if_dlg.c) |
| |
| 575 | | | gtk_table_attach_defaults(GTK_TABLE(if_tb), if_lb, 5, 6, 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 ()) |
| |
|
| 576 | | | |
| 577 | | | stop_bt = gtk_button_new_from_stock(WIRESHARK_STOCK_CAPTURE_STOP);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/stock_icons.h |
| |
34 | #define WIRESHARK_STOCK_CAPTURE_STOP "Wireshark_Stock_CaptureStop" |
| |
|
| 578 | | | gtk_tooltips_set_tip(tooltips, stop_bt, |
| 579 | | | "Stop a running capture.", NULL); |
| 580 | | | #ifdef _WIN32 |
| 581 | | | gtk_table_attach_defaults(GTK_TABLE(if_tb), stop_bt, 6, 9, row, row+1); |
| 582 | | | #else |
| 583 | | | gtk_table_attach_defaults(GTK_TABLE(if_tb), stop_bt, 6, 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 ()) |
| |
|
| 584 | | | #endif |
| 585 | | | g_signal_connect(stop_bt, "clicked", G_CALLBACK(capture_stop_cb), NULL);
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_stop_cb to this new type could lead to unsafe program behavior. - There were previously 2 arguments, now there are 0.
|
|
| 586 | | | |
| 587 | | | row++; |
| 588 | | | gtk_widget_size_request(stop_bt, &requisition); |
| 589 | | | height += requisition.height + 15; |
| 590 | | | |
| 591 | | | |
| 592 | | | sc = capture_stat_start(if_list); |
| 593 | | | |
| 594 | | | |
| 595 | | | for(ifs = 0; (curr = g_list_nth(if_list, ifs)); ifs++) { |
| |