Text   |  XML   |  ReML   |   Visible Warnings:

File System Race Condition  at firewall_dlg.c:771

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

firewall_save_as_ok_cb

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/firewall_dlg.c)expand/collapse
Show more  
 746  firewall_save_as_ok_cb(GtkWidget * w _U_, gpointer fs)
 747  {
 748      gchar       *to_name, *rule;
 749      rule_info_t *rule_info;
 750      FILE        *fh;
 751      gchar       *dirname;
 752   
 753      GtkTextIter start, end;
 754      GtkTextBuffer *buf;
 755   
 756      to_name = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fs));
 757   
 758      /* Perhaps the user specified a directory instead of a file.
 759         Check whether they did. */
 760[+]     if (test_for_directory(to_name) == EISDIR) {
 761          /* It's a directory - set the file selection box to display that
 762             directory, and leave the selection box displayed. */
 763          set_last_open_dir(to_name);
 764          g_free(to_name);
 765          file_selection_set_current_folder(fs, get_last_open_dir());
 766          gtk_file_chooser_set_current_name(fs, "");
 767          return FALSE; /* run the dialog again */
 768      }
 769   
 770      rule_info = g_object_get_data(G_OBJECT(fs), WS_RULE_INFO_KEY);
 771      fh = ws_fopen(to_name, "w");
Show more  




Change Warning 4079.30560 : File System Race Condition

Priority:
State:
Finding:
Owner:
Note: