(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/rtp_stream_dlg.c) |
| |
| 345 | | | "Wireshark: Save selected stream in rtpdump ('-F dump') format", |
| 346 | | | GTK_WINDOW(rtp_stream_dlg), GTK_FILE_CHOOSER_ACTION_SAVE,
x /usr/include/gtk-2.0/gtk/gtkwindow.h |
| |
42 | #define GTK_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_WINDOW, GtkWindow)) |
| |
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/gtkwindow.h |
| |
41 | #define GTK_TYPE_WINDOW (gtk_window_get_type ()) |
| |
|
| 347 | | | GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, |
| 348 | | | GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
x /usr/include/gtk-2.0/gtk/gtkstock.h |
| |
112 | #define GTK_STOCK_CANCEL "gtk-cancel" |
| |
|
| 349 | | | NULL); |
| 350 | | | #if GTK_CHECK_VERSION(2,8,0)
x /usr/include/gtk-2.0/gtk/gtkversion.h |
| |
45 | #define GTK_CHECK_VERSION(major,minor,micro) \ |
46 | (GTK_MAJOR_VERSION > (major) || \ |
47 | (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION > (minor)) || \ |
48 | (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION == (minor) && \ |
49 | GTK_MICRO_VERSION >= (micro))) |
| |
|
| 351 | | | gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(rtpstream_save_dlg), TRUE);
x /usr/include/gtk-2.0/gtk/gtkfilechooser.h |
| |
34 | #define GTK_FILE_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER, GtkFileChooser)) |
| |
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/gtkfilechooser.h |
| |
33 | #define GTK_TYPE_FILE_CHOOSER (gtk_file_chooser_get_type ()) |
| |
|
| 352 | | | #endif |
| 353 | | | |
| 354 | | | g_signal_connect(rtpstream_save_dlg, "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)) |
| |
|
| 355 | | | g_signal_connect(rtpstream_save_dlg, "destroy", G_CALLBACK(save_stream_destroy_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 save_stream_destroy_cb to this new type could lead to unsafe program behavior. - There were previously 2 arguments, now there are 0.
|
|
| 356 | | | |
| 357 | | | gtk_widget_show(rtpstream_save_dlg); |
| 358 | | | window_present(rtpstream_save_dlg); |
| 359 | | | #if 0 |
| 360 | | | if (gtk_dialog_run(GTK_DIALOG(rtpstream_save_dlg)) == GTK_RESPONSE_ACCEPT){ |
| 361 | | | save_stream_ok_cb(rtpstream_save_dlg, rtpstream_save_dlg); |
| 362 | | | }else{ |
| 363 | | | window_destroy(rtpstream_save_dlg); |
| 364 | | | } |
| 365 | | | #endif |
| |