Text   |  XML   |  ReML   |   Visible Warnings:

File System Race Condition  at iax2_analysis.c:1940

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

save_csv_as_ok_cb

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/iax2_analysis.c)expand/collapse
Show more  
 1898  static gboolean save_csv_as_ok_cb(GtkWidget *w _U_, gpointer fc /*user_data_t *user_data*/)
 1899  {
 1900          gchar        *g_dest;
 1901          GtkWidget    *rev, *forw, *both;
 1902          user_data_t  *user_data;
 1903   
 1904          GtkListStore *store;
 1905          GtkTreeIter   iter;
 1906          GtkTreeModel *model;
 1907          gboolean      more_items = TRUE;
 1908   
 1909          /* To Hold data from the list row */
 1910          guint   packet;         /* Packet                       */
 1911          gfloat  delta;          /* Delta(ms)                    */
 1912          gfloat  jitter;         /* Jitter(ms)                   */
 1913          gfloat  ipbw;           /* IP BW(kbps)                  */
 1914          char   *status_str;     /* Status                       */
 1915          char   *date_str;       /* Date                         */
 1916          guint   length;         /* Length                       */
 1917   
 1918          FILE *fp;
 1919          int j;
 1920   
 1921          g_dest = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fc));
 1922   
 1923          /* Perhaps the user specified a directory instead of a file.
 1924           * Check whether they did.
 1925           */
 1926[+]         if (test_for_directory(g_dest) == EISDIR) {
 1927                  /* It's a directory - set the file selection box to display it. */
 1928                  set_last_open_dir(g_dest);
 1929                  file_selection_set_current_folder(fc, get_last_open_dir());
 1930                  gtk_file_chooser_set_current_name(fc, "");
 1931                  g_free(g_dest);
 1932                  return FALSE; /* run the dialog again */
 1933          }
 1934          rev  = (GtkWidget*)g_object_get_data(G_OBJECT(fc), "reversed_rb");
 1935          forw = (GtkWidget*)g_object_get_data(G_OBJECT(fc), "forward_rb");
 1936          both = (GtkWidget*)g_object_get_data(G_OBJECT(fc), "both_rb");
 1937          user_data = (user_data_t*)g_object_get_data(G_OBJECT(fc), "user_data");
 1938   
 1939          if (GTK_TOGGLE_BUTTON(forw)->active || GTK_TOGGLE_BUTTON(both)->active) {
 1940                  fp = ws_fopen(g_dest, "w");
Show more  




Change Warning 4384.30561 : File System Race Condition

Because they are very similar, this warning shares annotations with warnings 4384.30563, 4384.30564, and 4384.30566.

Priority:
State:
Finding:
Owner:
Note: