Text   |  XML   |  ReML   |   Visible Warnings:

File System Race Condition  at color_filters.c:684

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

file_color_import_ok_cb

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/capture_file_dlg.c)expand/collapse
Show more  
 1545  file_color_import_ok_cb(GtkWidget *w, gpointer color_filters) {
 1546    gchar     *cf_name, *s;
 1547    GtkWidget *fs = gtk_widget_get_toplevel(w);
 1548   
 1549    cf_name = g_strdup(gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fs)));
 1550   
 1551    /* Perhaps the user specified a directory instead of a file.
 1552       Check whether they did. */
 1553[+]   if (test_for_directory(cf_name) == EISDIR) {
 1554          /* It's a directory - set the file selection box to display that
 1555             directory, don't try to open the directory as a color filter file. */
 1556          set_last_open_dir(cf_name);
 1557          g_free(cf_name);
 1558          file_selection_set_current_folder(fs, get_last_open_dir());
 1559          return;
 1560    }
 1561   
 1562    /* Try to open the color filter file. */
 1563   
 1564[+]   if (!color_filters_import(cf_name, color_filters)) {
expand/collapse

color_filters_import

(/home/sate/Testcases/c/cve/wireshark-1.2.0/color_filters.c)expand/collapse
Show more  
 679  color_filters_import(gchar *path, gpointer user_data)
 680  {
 681          FILE *f;
 682          gboolean ret;
 683   
 684          if ((f = ws_fopen(path, "r")) == NULL) {
Show more  
Show more  




Change Warning 3990.30933 : File System Race Condition

Priority:
State:
Finding:
Owner:
Note: