Text   |  XML   |  ReML   |   Visible Warnings:

File System Race Condition  at color_filters.c:777

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

file_color_export_ok_cb

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/capture_file_dlg.c)expand/collapse
Show more  
 1687  file_color_export_ok_cb(GtkWidget *w, gpointer filter_list) {
 1688    gchar *cf_name;
 1689    gchar *dirname;
 1690    GtkWidget *fs = gtk_widget_get_toplevel(w);
 1691   
 1692    cf_name = g_strdup(gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fs)));
 1693   
 1694    /* Perhaps the user specified a directory instead of a file.
 1695       Check whether they did. */
 1696[+]   if (test_for_directory(cf_name) == EISDIR) {
 1697          /* It's a directory - set the file selection box to display that
 1698             directory, and leave the selection box displayed. */
 1699          set_last_open_dir(cf_name);
 1700          g_free(cf_name);
 1701          file_selection_set_current_folder(fs, get_last_open_dir());
 1702          return;
 1703    }
 1704   
 1705    /* Write out the filters (all, or only the ones that are currently 
 1706       displayed or selected) to the file with the specified name. */
 1707   
 1708[+]    if (!color_filters_export(cf_name, filter_list, color_selected))
expand/collapse

color_filters_export

(/home/sate/Testcases/c/cve/wireshark-1.2.0/color_filters.c)expand/collapse
Show more  
 773  color_filters_export(gchar *path, GSList *cfl, gboolean only_marked)
 774  {
 775          FILE *f;
 776   
 777          if ((f = ws_fopen(path, "w+")) == NULL) {
Show more  
Show more  




Change Warning 3991.30547 : File System Race Condition

Priority:
State:
Finding:
Owner:
Note: