CVE-2026-25210: add an integer overflow check before the tag buffer doubling
in doContent(), so the reallocation size can no longer wrap
CVE-2026-56407: cap the entity value pool length against signed integer
overflow in doProlog() before it is stored into m_declEntity->textLen
CVE-2026-56408: add the upstream integer overflow guard to copyString();
with XML_Char == char as built here the guard is inert, and it takes effect
only in an XML_UNICODE build where sizeof(XML_Char) > 1