there is a deadloop issue in function: xmlSchemaCheckElemSubstGroup
following while condition have deadloop bug in function: xmlSchemaCheckElemSubstGroup(), for example: if here the type is equal to xmlSchemaTypeAnyTypeDef, for xmlSchemaTypeAnyTypeDef, xmlSchemaTypeAnyTypeDef->baseType is equal to xmlSchemaTypeAnyTypeDef.
while ((type != NULL) && (type != headType)) {
if ((WXS_IS_EXTENSION(type)) &&
((methSet & XML_SCHEMAS_TYPE_BLOCK_RESTRICTION) == 0))
methSet |= XML_SCHEMAS_TYPE_BLOCK_EXTENSION;
if (WXS_IS_RESTRICTION(type) &&
((methSet & XML_SCHEMAS_TYPE_BLOCK_RESTRICTION) == 0))
methSet |= XML_SCHEMAS_TYPE_BLOCK_RESTRICTION;
type = type->baseType;
}
solution suggesed: using following loop condition:
while ((type != NULL) && (type != headType) && (type != type->baseType)) {
Edited by Nick Wellnhofer