(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/capture_file_dlg.c) |
| |
| 1104 | | | |
| 1105 | | | index = 0; |
| 1106 | | | for (ft = 0; ft < WTAP_NUM_FILE_TYPES; ft++) { |
| 1107 | | | if (can_save_with_wiretap(ft)) { |
| 1108 | | | |
| 1109 | | | = (wtap_file_type_string(ft)); |
| 1110 | | | if (ft == filetype) { |
| 1111 | | | |
| 1112 | | | item_to_select = index; |
| 1113 | | | } |
| 1114 | | | g_signal_connect(, "activate", G_CALLBACK(select_file_type_cb),
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)) |
| |
|
| 1115 | | | GINT_TO_POINTER(ft)); |
Dangerous Function Cast
Casting select_file_type_cb to this new type could lead to unsafe program behavior. - There were previously 2 arguments, now there are 0.
|
|
| 1116 | | | ((), );
x /usr/include/gtk-2.0/gtk/gtkmenushell.h |
| |
41 | #define (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), , )) |
| |
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)) |
| |
|
| 1117 | | | gtk_widget_show(); |
| 1118 | | | index++; |
| 1119 | | | } |
| 1120 | | | } |
| 1121 | | | |
| 1122 | | | ((), );
x /usr/include/gtk-2.0/gtk/gtkoptionmenu.h |
| |
38 | #define (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), , )) |
| |
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)) |
| |
|
| 1123 | | | if (item_to_select >= 0) { |
| 1124 | | | |
| 1125 | | | ((), item_to_select);
x /usr/include/gtk-2.0/gtk/gtkoptionmenu.h |
| |
38 | #define (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), , )) |
| |
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)) |
| |
|
| |