(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/h225_ras_srt.c) |
| |
| 321 | | | return; |
| 322 | | | } |
| 323 | | | |
| 324 | | | |
| 325 | | | 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" |
| |
|
| 326 | | | gtk_box_pack_end(GTK_BOX(hs->vbox), bbox, 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 ()) |
| |
|
| 327 | | | |
| 328 | | | 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" |
| |
|
| 329 | | | window_set_cancel_button(hs->win, close_bt, window_cancel_button_cb); |
| 330 | | | |
| 331 | | | g_signal_connect(hs->win, "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.
|
|
| 332 | | | g_signal_connect(hs->win, "destroy", G_CALLBACK(win_destroy_cb), hs);
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)) |
| |
|
| 333 | | | |
| 334 | | | gtk_widget_show_all(hs->win); |
| 335 | | | window_present(hs->win); |
| 336 | | | |
| 337 | | | cf_retap_packets(&cfile, FALSE); |
| 338 | | | gdk_window_raise(hs->win->window); |
| 339 | | | } |
| 340 | | | |
| 341 | | | void |
| |