[xml] [libxml2] Schema parsing bug



Under libxml2-2.4.24 under RH Linux 7.3, attempting to parse the
following XML Schema with the test program 'testSchema' causes a
segmentation fault:

--cut here--
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified" attribute
FormDefault="unqualified">
    <xs:element name="foo">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="bar" type="xs:string" minOccurs="0"
maxOccurs="unbounded"/>
                <xs:element name="baz" type="xs:string" minOccurs="0"
maxOccurs="unbounded"/>  
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>
--cut here--

The problem seems to be somewhere in xmlFARecurseDeterminism in
xmlregexp.c, but we haven't been able to trace it down farther than
that.
--
Jeff Goff <jeff goff databuilt com>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]