Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-770

Possibly incorrect assertion in XalanSourceTreeDocument::createAttributes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.11
    • None
    • XalanC
    • None
    • Debian GNU/Linux 8.6 (jessie), amd64

    Description

      As reported in Debian (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=783173), certain input causes debug builds to fail with the following assertion error:

      debian_xalan-c_debug/xalan/t$ testXSLT -validate -xsl realworld1.xslt -in
      realworld1.xml
      xalan: /tmp/buildd/xalan-1.11/c/src/xalanc/XalanSourceTree/XalanSourceTreeDocument.cpp:1206:
      size_t
      xalanc_1_11::XalanSourceTreeDocument::createAttributes(xalanc_1_11::XalanSourceTreeAttr**,
      const AttributesType&, size_t, xalanc_1_11::XalanSourceTreeElement*,
      bool): Assertion `theColonIndex != length(theQName)' failed.

      However, release builds (with assertions disabled) process correctly and yield the correct output. This raises a question: Is the assertion logic incorrect, or is the assertion logic correct and the successful processing is the result of luck?

      Attachments

        1. realworld1.expected
          6 kB
          Bill Blough
        2. realworld1.xml
          6 kB
          Bill Blough
        3. realworld1.xslt
          9 kB
          Bill Blough

        Activity

          People

            shathaway Steven J. Hathaway
            billblough Bill Blough
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: