Robert Shearman rob@codeweavers.com writes:
p++;
if ((*p == 'X') || (*p == 'x'))
{
/* hexadecimal entity */
while ((*p >= '0' && *p <= '9') || (*p >= 'a' && *p <= 'f') ||
(*p >= 'A' && *p <= 'F'))
p++;
ch = strtolW(start + 2, NULL, 16);
}
This is still broken.
if (p - start - 1 <= sizeof(char_refs[0].name))
{
for (i = 0; i < sizeof(char_refs)/sizeof(char_refs[0]); i++)
if (!strncmpW(char_refs[i].name, start + 1, p - start - 1))
break;
}
This is still broken too.