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:
parent
7fe9cc1693
commit
ea6d296eed
@ -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();
|
||||
}
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user