(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-xml.c) |
| |
| 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) {
x /usr/include/asm-generic/errno-base.h |
| |
24 | #define EISDIR 21 /* Is a directory */ |
| |
|
Event 12:
dirname, which evaluates to g_strdup_printf(...) from filesystem.c:1297, is passed to test_for_directory(). See related event 11.
hide
|
|
 |
| 1220 | | | |
| 1221 | | | g_free(dirname); |
| 1222 | | | dirname = get_datafile_path("dtds"); |
| 1223 | | | } |
| 1224 | | | |
| 1225 | [+] | | if (test_for_directory(dirname) == EISDIR) {
x /usr/include/asm-generic/errno-base.h |
| |
24 | #define EISDIR 21 /* Is a directory */ |
| |
|
Event 18:
dirname, which evaluates to g_strdup_printf(...) from filesystem.c:1297, is passed to test_for_directory(). See related events 11 and 14.
hide
|
|
 |
| |