(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/mtp3_summary.c) |
| |
| 406 | | | add_string_to_box(string_buff, tot_box); |
| 407 | | | |
| 408 | | | |
| 409 | | | bbox = dlg_button_row_new(GTK_STOCK_CLOSE, NULL);
x /usr/include/gtk-2.0/gtk/gtkstock.h |
| |
146 | #define GTK_STOCK_CLOSE "gtk-close" |
| |
|
| 410 | | | gtk_container_add(GTK_CONTAINER(main_vb), bbox);
x /usr/include/gtk-2.0/gtk/gtkcontainer.h |
| |
42 | #define GTK_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CONTAINER, GtkContainer)) |
| |
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/gtkcontainer.h |
| |
41 | #define GTK_TYPE_CONTAINER (gtk_container_get_type ()) |
| |
|
| 411 | | | gtk_widget_show(bbox); |
| 412 | | | |
| 413 | | | close_bt = g_object_get_data(G_OBJECT(bbox), GTK_STOCK_CLOSE);
x /usr/include/glib-2.0/gobject/gobject.h |
| |
52 | #define G_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), G_TYPE_OBJECT, GObject)) |
| |
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/glib-2.0/gobject/gtype.h |
| |
181 | #define G_TYPE_OBJECT G_TYPE_MAKE_FUNDAMENTAL (20) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
222 | #define G_TYPE_MAKE_FUNDAMENTAL(x) ((GType) ((x) << G_TYPE_FUNDAMENTAL_SHIFT)) |
| |
x /usr/include/gtk-2.0/gtk/gtkstock.h |
| |
146 | #define GTK_STOCK_CLOSE "gtk-close" |
| |
|
| 414 | | | window_set_cancel_button(sum_open_w, close_bt, window_cancel_button_cb); |
| 415 | | | |
| 416 | | | g_signal_connect(sum_open_w, "delete_event", G_CALLBACK(window_delete_event_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 window_delete_event_cb to this new type could lead to unsafe program behavior. - The function return types have different sizes.
- The previous return type was int which has size 4.
- The new return type is void which has size 0.
|
|
| 417 | | | |
| 418 | | | gtk_widget_show_all(sum_open_w); |
| 419 | | | window_present(sum_open_w); |
| 420 | | | } |
| 421 | | | |
| 422 | | | |
| 423 | | | void |
| 424 | | | register_tap_listener_gtkmtp3_summary(void) |
| 425 | | | { |
| 426 | | | ("MTP3/MSU Summary", REGISTER_STAT_GROUP_TELEPHONY, |
| |