a=vidur. Fix for bug 34168. We now handle the case of a redundant percentage sign in the entity value of an entity definition in the internal subset without crashing.

git-svn-id: svn://10.0.0.236/trunk@81047 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nisheeth%netscape.com 2000-10-12 21:07:45 +00:00
parent 7fe9cc1693
commit ea6d296eed
2 changed files with 8 additions and 0 deletions

View File

@ -3043,6 +3043,10 @@ enum XML_Error storeEntityValue(XML_Parser parser,
if (enc == encoding)
eventPtr = next;
return XML_ERROR_INVALID_TOKEN;
case XML_TOK_PERCENT:
if (enc == encoding)
eventPtr = next;
return XML_ERROR_SYNTAX;
default:
abort();
}

View File

@ -3043,6 +3043,10 @@ enum XML_Error storeEntityValue(XML_Parser parser,
if (enc == encoding)
eventPtr = next;
return XML_ERROR_INVALID_TOKEN;
case XML_TOK_PERCENT:
if (enc == encoding)
eventPtr = next;
return XML_ERROR_SYNTAX;
default:
abort();
}