Text   |  XML   |  ReML   |   Visible Warnings:

File System Race Condition  at graph_analysis.c:543

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

save_to_file_ok_cb

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/graph_analysis.c)expand/collapse
Show more  
 514  static gboolean save_to_file_ok_cb(GtkWidget *ok_bt _U_, gpointer user_data)
 515  {
 516          FILE *file_test;
 517          graph_analysis_data_t *user_data_p;
 518   
 519          user_data_p = user_data;
 520   
 521          user_data_p->dlg.save_file = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(save_to_file_w));
 522   
 523          /* Perhaps the user specified a directory instead of a file.
 524             Check whether they did. */
 525[+]         if (test_for_directory(user_data_p->dlg.save_file) == EISDIR) {
 526                  /* It's a directory - set the file selection box to display it. */
 527                  set_last_open_dir(user_data_p->dlg.save_file);
 528                  file_selection_set_current_folder(save_to_file_w, get_last_open_dir());
 529                  gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(save_to_file_w), "");
 530                  g_free(user_data_p->dlg.save_file);
 531                  return FALSE;  /* run the dialog again */
 532          }
 533   
 534          /* GtkFileChooserDialog/gtk_dialog_run is currently being used.         */
 535          /*      So: Trying to leave the graph_analysis window up if graph_dump  */
 536          /*          fails doesn't work well.                                    */
 537          /*  (See comment under on_save_bt_clicked)                              */
 538          /*                                                                      */
 539          /* As a work-around:                                                    */
 540          /*  We'll always destroy the window.                                    */
 541         
 542          /* check whether the file exists */
 543          file_test = ws_fopen(user_data_p->dlg.save_file,"r");
Show more  




Change Warning 4101.30945 : File System Race Condition

Priority:
State:
Finding:
Owner:
Note: