(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/rtp_stream_dlg.c) |
| |
| 160 | | | static gboolean save_stream_ok_cb(GtkWidget *ok_bt _U_, gpointer fs) |
| 161 | | | { |
| 162 | | | gchar *g_dest; |
| 163 | | | |
| 164 | | | if (!selected_stream_fwd) { |
Event 1:
Skipping " if". selected_stream_fwd evaluates to true.
hide
|
|
| 165 | | | return TRUE; |
| 166 | | | } |
| 167 | | | |
| 168 | | | g_dest = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fs));
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 ()) |
| |
|
| 169 | | | |
| 170 | | | |
| 171 | | | |
| 172 | [+] | | if (test_for_directory(g_dest) == EISDIR) {
x /usr/include/asm-generic/errno-base.h |
| |
24 | #define EISDIR 21 /* Is a directory */ |
| |
|
Event 6:
g_dest, which evaluates to gtk_file_chooser_get_filename(...) from rtp_stream_dlg.c:168, is passed to test_for_directory(). See related event 5.
hide
|
|
 |
| 173 | | | |
| 174 | | | set_last_open_dir(g_dest); |
| 175 | | | g_free(g_dest); |
| 176 | | | file_selection_set_current_folder(fs, get_last_open_dir()); |
| 177 | | | gtk_file_chooser_set_current_name(fs, ""); |
| 178 | | | return FALSE; |
| 179 | | | } |
| 180 | | | |
| 181 | | | #if 0 |
| 182 | | | |
| 183 | | | |
| 184 | | | |
| 185 | | | |
| 186 | | | |
| 187 | | | if (!rtpstream_save(selected_stream_fwd, g_dest)) { |
| 188 | | | g_free(g_dest); |
| 189 | | | return; |
| 190 | | | } |
| 191 | | | g_free(g_dest); |
| 192 | | | window_destroy(GTK_WIDGET(rtpstream_save_dlg)); |
| 193 | | | return; |
| 194 | | | #else |
| 195 | | | |
| 196 | | | |
| 197 | | | |
| 198 | [+] | | rtpstream_save(selected_stream_fwd, g_dest); |
Event 12:
g_dest, which evaluates to gtk_file_chooser_get_filename(...) from rtp_stream_dlg.c:168, is passed to rtpstream_save() as the second argument. See related events 5 and 8.
hide
|
|
 |
| |