(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/filter_dlg.c) |
| |
| 553 | | | if (list_type == DFILTER_EDITED_LIST) { |
| 554 | | | gtk_tooltips_set_tip(tooltips, filter_te, |
| 555 | | | "Enter a display filter. " |
| 556 | | | "The background color of this field is changed by a continuous syntax check" |
| 557 | | | " (green is valid, red is invalid, yellow may have unexpected results).", |
| 558 | | | NULL); |
| 559 | | | |
| 560 | | | |
| 561 | | | |
| 562 | | | add_expression_bt = gtk_button_new_from_stock(WIRESHARK_STOCK_ADD_EXPRESSION);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/stock_icons.h |
| |
50 | #define WIRESHARK_STOCK_ADD_EXPRESSION "Wireshark_Stock_Edit_Add_Expression" |
| |
|
| 563 | | | g_signal_connect(add_expression_bt, "clicked", G_CALLBACK(filter_add_expr_bt_cb), main_w);
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 filter_add_expr_bt_cb to this new type could lead to unsafe program behavior. - There were previously 2 arguments, now there are 0.
|
|
| 564 | | | gtk_box_pack_start(GTK_BOX(bottom_hb), add_expression_bt, FALSE, FALSE, 0);
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 ()) |
| |
|
| 565 | | | gtk_widget_show(add_expression_bt); |
| 566 | | | gtk_tooltips_set_tip (tooltips, add_expression_bt, ("Add an expression to the filter string"), NULL); |
| 567 | | | } |
| 568 | | | |
| 569 | | | |
| 570 | | | |
| 571 | | | bbox = dlg_button_row_new(GTK_STOCK_OK, GTK_STOCK_APPLY, GTK_STOCK_SAVE, GTK_STOCK_CANCEL, GTK_STOCK_HELP, NULL);
x /usr/include/gtk-2.0/gtk/gtkstock.h |
| |
96 | #define GTK_STOCK_APPLY "gtk-apply" |
| |
x /usr/include/gtk-2.0/gtk/gtkstock.h |
| |
112 | #define GTK_STOCK_CANCEL "gtk-cancel" |
| |
|
| 572 | | | gtk_box_pack_start(GTK_BOX(main_vb), bbox, 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 ()) |
| |
|
| 573 | | | gtk_widget_show(bbox); |
| |