Text   |  XML   |  ReML   |   Visible Warnings:

Dangerous Function Cast  at file_dlg.c:193

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

file_selection_browse

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/file_dlg.c)expand/collapse
Show more  
 182    g_object_set_data(G_OBJECT(fs), PRINT_FILE_TE_KEY, file_te);
 183   
 184    /* Set the E_FS_CALLER_PTR_KEY for the new dialog to point to our caller. */
 185    g_object_set_data(G_OBJECT(fs), E_FS_CALLER_PTR_KEY, caller);
 186   
 187    /* Set the E_FILE_SEL_DIALOG_PTR_KEY for the caller to point to us */
 188    g_object_set_data(G_OBJECT(caller), E_FILE_SEL_DIALOG_PTR_KEY, fs);
 189   
 190    /* Call a handler when the file selection box is destroyed, so we can inform
 191       our caller, if any, that it's been destroyed. */
 192    g_signal_connect(fs, "destroy", G_CALLBACK(file_selection_browse_destroy_cb),  
 193                   file_te);
 194   
 195    if (gtk_dialog_run(GTK_DIALOG(fs)) == GTK_RESPONSE_ACCEPT)
 196    {
 197        f_name = g_strdup(gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fs)));
 198        gtk_entry_set_text(GTK_ENTRY(file_te), f_name);
 199        g_free(f_name);
 200    }
 201    window_destroy(fs);
 202  }
 203   
Show more  




Change Warning 227.28085 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: