Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-42418

XMLISVALID: maxOccurs with trailing garbage, or above 2^63, is parsed wrongly

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Critical
    • Resolution: Unresolved
    • N/A
    • 13.3
    • XML Functions
    • None

    Description

      --disable_abort_on_error
      --echo # BUG if not error
      SELECT XMLISVALID('<r><a/><a/></r>', '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="r"><xs:complexType><xs:sequence><xs:element name="a" type="xs:string" maxOccurs="2x"/></xs:sequence></xs:complexType></xs:element></xs:schema>');
      SELECT XMLISVALID('<r><a/><a/></r>', '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="r"><xs:complexType><xs:sequence><xs:element name="a" type="xs:string" minOccurs="3" maxOccurs="2"/></xs:sequence></xs:complexType></xs:element></xs:schema>');
      --echo # BUG if 0
      SELECT XMLISVALID('<r><a/><a/></r>', '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="r"><xs:complexType><xs:sequence><xs:element name="a" type="xs:string" maxOccurs="9223372036854775808"/></xs:sequence></xs:complexType></xs:element></xs:schema>');

      Actual: 1, 0, 0.

      Attachments

        Issue Links

          Activity

            People

              holyfoot Alexey Botchkov
              alice Alice Sherepa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.