Text   |  XML   |  ReML   |   Visible Warnings:

File System Race Condition  at filesystem.c:215

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

init_xml_names

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-xml.c)expand/collapse
Show more  
 1194  static void init_xml_names(void) {
 1195          xml_ns_t* xmlpi_xml_ns;
 1196          guint i;
 1197          DIRECTORY_T* dir;
 1198          const FILE_T* file;
 1199          const gchar* filename;
 1200          gchar* dirname;
 1201   
 1202          GError** dummy = g_malloc(sizeof(GError *));
 1203          *dummy = NULL;
 1204   
 1205          xmpli_names = g_hash_table_new(g_str_hash,g_str_equal);
 1206          media_types = g_hash_table_new(g_str_hash,g_str_equal);
 1207   
 1208          unknown_ns.elements = xml_ns.elements = g_hash_table_new(g_str_hash,g_str_equal);
 1209          unknown_ns.attributes = xml_ns.attributes = g_hash_table_new(g_str_hash,g_str_equal);
 1210   
 1211          xmlpi_xml_ns = xml_new_namespace(xmpli_names,"xml","version","encoding","standalone",NULL);
 1212   
 1213          g_hash_table_destroy(xmlpi_xml_ns->elements);
 1214          xmlpi_xml_ns->elements = NULL;
 1215   
 1216   
 1217[+]         dirname = get_persconffile_path("dtds", FALSE, FALSE);
 1218   
 1219[+]         if (test_for_directory(dirname) != EISDIR) {
 1220                  /* Although dir isn't a directory it may still use memory */
 1221                  g_free(dirname);
 1222                  dirname = get_datafile_path("dtds");
 1223          }
 1224   
 1225[+]         if (test_for_directory(dirname) == EISDIR) {
expand/collapse

test_for_directory

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/filesystem.c)expand/collapse
Show more  
 211  test_for_directory(const char *path)
 212  {
 213          struct stat statb;
 214   
 215          if (ws_stat(path, &statb) < 0)
Show more  
Show more  




Change Warning 3085.30808 : File System Race Condition

Priority:
State:
Finding:
Owner:
Note: