Searched refs:attrExt (Results 1 – 2 of 2) sorted by relevance
1465 ResXMLTree_attrExt attrExt; in flatten_node() local1498 extData = &attrExt; in flatten_node()1499 extSize = sizeof(attrExt); in flatten_node()1500 memset(&attrExt, 0, sizeof(attrExt)); in flatten_node()1502 attrExt.ns.index = htodl(strings.offsetForString(mNamespaceUri)); in flatten_node()1504 attrExt.ns.index = htodl((uint32_t)-1); in flatten_node()1506 attrExt.name.index = htodl(strings.offsetForString(mElementName)); in flatten_node()1507 attrExt.attributeStart = htods(sizeof(attrExt)); in flatten_node()1508 attrExt.attributeSize = htods(sizeof(attr)); in flatten_node()1509 attrExt.attributeCount = htods(NA); in flatten_node()[all …]
1771 const ResXMLTree_attrExt* attrExt = (const ResXMLTree_attrExt*) in validateNode() local1775 && ((void*)attrExt > (void*)node)) { in validateNode()1776 const size_t attrSize = ((size_t)dtohs(attrExt->attributeSize)) in validateNode()1777 * dtohs(attrExt->attributeCount); in validateNode()1778 if ((dtohs(attrExt->attributeStart)+attrSize) <= (size-headerSize)) { in validateNode()1782 (unsigned int)(dtohs(attrExt->attributeStart)+attrSize), in validateNode()