Searched refs:attrExt (Results 1 – 2 of 2) sorted by relevance
1468 ResXMLTree_attrExt attrExt; in flatten_node() local1501 extData = &attrExt; in flatten_node()1502 extSize = sizeof(attrExt); in flatten_node()1503 memset(&attrExt, 0, sizeof(attrExt)); in flatten_node()1505 attrExt.ns.index = htodl(strings.offsetForString(mNamespaceUri)); in flatten_node()1507 attrExt.ns.index = htodl((uint32_t)-1); in flatten_node()1509 attrExt.name.index = htodl(strings.offsetForString(mElementName)); in flatten_node()1510 attrExt.attributeStart = htods(sizeof(attrExt)); in flatten_node()1511 attrExt.attributeSize = htods(sizeof(attr)); in flatten_node()1512 attrExt.attributeCount = htods(NA); in flatten_node()[all …]
1696 const ResXMLTree_attrExt* attrExt = (const ResXMLTree_attrExt*) in validateNode() local1700 && ((void*)attrExt > (void*)node)) { in validateNode()1701 const size_t attrSize = ((size_t)dtohs(attrExt->attributeSize)) in validateNode()1702 * dtohs(attrExt->attributeCount); in validateNode()1703 if ((dtohs(attrExt->attributeStart)+attrSize) <= (size-headerSize)) { in validateNode()1707 (unsigned int)(dtohs(attrExt->attributeStart)+attrSize), in validateNode()