Lines Matching refs:dict
4 Subject: [PATCH] [CVE-2022-40304] Fix dict corruption caused by entity
9 be allocated from a dict. In this case, the dict entry becomes corrupted
13 Stop storing entity content, orig, ExternalID and SystemID in a dict.
15 shouldn't have been stored in a dict in the first place.
31 - if (dict != NULL) {
32 - if ((entity->name != NULL) && (!xmlDictOwns(dict, entity->name)))
35 - (!xmlDictOwns(dict, entity->ExternalID)))
38 - (!xmlDictOwns(dict, entity->SystemID)))
40 - if ((entity->URI != NULL) && (!xmlDictOwns(dict, entity->URI)))
43 - && (!xmlDictOwns(dict, entity->content)))
45 - if ((entity->orig != NULL) && (!xmlDictOwns(dict, entity->orig)))
62 + ((dict == NULL) || (!xmlDictOwns(dict, entity->name))))
77 @@ -193,18 +176,12 @@ xmlCreateEntity(xmlDictPtr dict, const xmlChar *name, int type,
80 ret->name = xmlDictLookup(dict, name, -1);
82 - ret->ExternalID = xmlDictLookup(dict, ExternalID, -1);
84 - ret->SystemID = xmlDictLookup(dict, SystemID, -1);
90 - if ((dict != NULL) && (ret->length < 5))
92 - xmlDictLookup(dict, content, ret->length);