mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-27 14:03:36 +03:00
schemas: Fix infinite loop in xmlSchemaCheckElemSubstGroup
Types like xmlSchemaTypeAnyTypeDef have a base type pointing to itself, resulting in an infinite loop. Fixes #430.
This commit is contained in:
parent
9aba613b14
commit
abb5a93fed
@ -19960,7 +19960,8 @@ xmlSchemaCheckElemSubstGroup(xmlSchemaParserCtxtPtr ctxt,
|
||||
/*
|
||||
* The set of all {derivation method}s involved in the derivation
|
||||
*/
|
||||
while ((type != NULL) && (type != headType)) {
|
||||
while ((type != NULL) && (type != headType) &&
|
||||
(type != type->baseType)) {
|
||||
if ((WXS_IS_EXTENSION(type)) &&
|
||||
((methSet & XML_SCHEMAS_TYPE_BLOCK_RESTRICTION) == 0))
|
||||
methSet |= XML_SCHEMAS_TYPE_BLOCK_EXTENSION;
|
||||
|
Loading…
x
Reference in New Issue
Block a user