Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1840

XSD validator leaks memory - probably related to xsd:any

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.0.1
    • None
    • Windows XP, MSVC2005

    Description

      When validating:

      <?xml version="1.0" encoding="UTF-8"?>
      <doc xsi:noNamespaceSchemaLocation="config.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:utils="urn:utils">
      </doc>

      using the schema:

      <?xml version="1.0" encoding="utf-8"?>
      <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

      <xsd:element name="doc">
      <xsd:complexType>
      <xsd:sequence>
      <xsd:any minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>

      </xsd:schema>

      A leak of 80 bytes is reported. This appears to be related to using xsd:any, as I haven't seen this in other circumstances (yet)

      Attachments

        1. 3.0.1.patch
          3 kB
          Boris Kolpackov

        Activity

          People

            amassari Alberto Massari
            johanditmar Johan Ditmar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: