Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-35052

QXmlSchemaValidator runs out of memory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.10.1
    • 5.1.0
    • XML: QtXmlPatterns
    • None
    • Tested on Windows 7 with mingw build from the standard Qt/MinGW installer.
    • 75e9858a87307f61b478735f73c0a60c52c25eb8

    Description

      The QXmlSchemaValidator runs out of memory for rather simple xml and xsd files. This can be repeated using xmlpatternsvalidator (tested on Windows 7) using the attached files:
      $./xmlpatternsvalidator.exe file:///Z:/.../test.xml file:///Z:/local/.../test.xsd ; echo $?

      This application has requested the Runtime to terminate it in an unusual way.
      Please contact the application's support team for more information.
      terminate called after throwing an instance of 'std::bad_alloc'
      what(): std::bad_alloc
      3

      I reduced the files to the bare minimum required to reproduce the problem. Commenting out any entry in the xs:all list of Level3 and the validation works fine.

      The is a possibly related bug QTBUG-12534, but I could not reproduce that problem any more.

      Attachments

        1. test.xml
          0.1 kB
        2. test.xsd
          2 kB

        Issue Links

          Activity

            People

              viengelm Viktor Engelmann
              ukoehler Uwe Köhler
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: