Text   |  XML   |  ReML   |   Visible Warnings:

File System Race Condition  at follow_stream.c:612

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

follow_save_as_ok_cb

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/follow_stream.c)expand/collapse
Show more  
 583  follow_save_as_ok_cb(GtkWidget * w _U_, gpointer fs)
 584  {
 585          gchar           *to_name;
 586          follow_info_t   *follow_info;
 587          FILE            *fh;
 588          print_stream_t  *stream = NULL;
 589          gchar           *dirname;
 590   
 591          to_name = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fs));
 592   
 593          /* Perhaps the user specified a directory instead of a file.
 594             Check whether they did. */
 595[+]         if (test_for_directory(to_name) == EISDIR) {
 596                  /* It's a directory - set the file selection box to display that
 597                     directory, and leave the selection box displayed. */
 598                  set_last_open_dir(to_name);
 599                  g_free(to_name);
 600                  file_selection_set_current_folder(fs, get_last_open_dir());
 601                  gtk_file_chooser_set_current_name(fs, "");
 602                  return FALSE; /* do gtk_dialog_run again */
 603          }
 604   
 605          follow_info = g_object_get_data(G_OBJECT(fs), E_FOLLOW_INFO_KEY);
 606   
 607          if (follow_info->show_type == SHOW_RAW) {
 608                  /* Write the data out as raw binary data */
 609                  fh = ws_fopen(to_name, "wb");
 610          } else {
 611                  /* Write it out as text */
 612                  fh = ws_fopen(to_name, "w");
Show more  




Change Warning 4090.30659 : File System Race Condition

Priority:
State:
Finding:
Owner:
Note: