(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/pixmap_save.c) |
| |
| 154 | | | gdk_pixbuf_format_get_name(pixbuf_format)); |
| 155 | | | } |
| 156 | | | ffp = g_slist_next(ffp);
x /usr/include/glib-2.0/glib/gslist.h |
| |
107 | #define g_slist_next(slist) ((slist) ? (((GSList *)(slist))->next) : NULL) |
| |
|
| 157 | | | } |
| 158 | | | g_slist_free(file_formats); |
| 159 | | | |
| 160 | | | gtk_combo_box_set_active(GTK_COMBO_BOX(type_cm), 0);
x /usr/include/gtk-2.0/gtk/gtkcombobox.h |
| |
34 | #define GTK_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX, GtkComboBox)) |
| |
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/gtkcombobox.h |
| |
33 | #define GTK_TYPE_COMBO_BOX (gtk_combo_box_get_type ()) |
| |
|
| 161 | | | g_object_set_data(G_OBJECT(save_as_w), "type_cm", type_cm);
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)) |
| |
|
| 162 | | | gtk_widget_show(type_cm); |
| 163 | | | |
| 164 | | | g_signal_connect(save_as_w, "destroy", G_CALLBACK(pixbuf_save_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 pixbuf_save_destroy_cb to this new type could lead to unsafe program behavior. - There were previously 2 arguments, now there are 0.
|
|
| 165 | | | |
| 166 | | | gtk_widget_show(save_as_w); |
| 167 | | | window_present(save_as_w); |
| 168 | | | parent = gtk_widget_get_parent_window(w); |
| 169 | | | gdk_window_set_transient_for(save_as_w->window, parent); |
| 170 | | | |
| 171 | | | #if 0 |
| 172 | | | if(gtk_dialog_run(GTK_DIALOG(save_as_w)) == GTK_RESPONSE_ACCEPT) |
| 173 | | | pixbuf_save_button_cb(save_as_w, pixbuf); |
| 174 | | | |
| |