cargilld 2004/10/15 04:15:44
Modified: c/src/xercesc/framework/psvi XSComplexTypeDefinition.cpp
Log:
Fix for jira bug 1234. Infinite loop in XSComplexTypeDefinition::derviedFromType.
Revision Changes Path
1.14 +6 -1
xml-xerces/c/src/xercesc/framework/psvi/XSComplexTypeDefinition.cpp
Index: XSComplexTypeDefinition.cpp
===================================================================
RCS file:
/home/cvs/xml-xerces/c/src/xercesc/framework/psvi/XSComplexTypeDefinition.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- XSComplexTypeDefinition.cpp 8 Sep 2004 13:56:08 -0000 1.13
+++ XSComplexTypeDefinition.cpp 15 Oct 2004 11:15:44 -0000 1.14
@@ -16,6 +16,9 @@
/*
* $Log$
+ * Revision 1.14 2004/10/15 11:15:44 cargilld
+ * Fix for jira bug 1234. Infinite loop in
XSComplexTypeDefinition::derviedFromType.
+ *
* Revision 1.13 2004/09/08 13:56:08 peiyongz
* Apache License Version 2.0
*
@@ -225,9 +228,11 @@
return false;
XSTypeDefinition* type = this;
+ XSTypeDefinition* lastType = 0; // anytype has a basetype of anytype so will
have infinite loop...
- while (type && (type != ancestorType))
+ while (type && (type != ancestorType) && (type != lastType))
{
+ lastType = type;
type = type->getBaseType();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]