You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Christian Luidolt (Jira)" <ji...@apache.org> on 2021/11/29 10:01:00 UTC

[jira] [Created] (XALANC-814) assertion when including invalid style sheet

Christian Luidolt created XALANC-814:
----------------------------------------

             Summary: assertion when including invalid style sheet
                 Key: XALANC-814
                 URL: https://issues.apache.org/jira/browse/XALANC-814
             Project: XalanC
          Issue Type: Bug
          Components: XalanC
    Affects Versions: 1.12
         Environment: Tested on Fedora 35 using xalan-c-1.12.0-15.fc35.x86_64
            Reporter: Christian Luidolt
            Assignee: Gary D. Gregory
         Attachments: invalid.html, simple.xsl, xml.xml, xsl.xsl

executing Xalan using the attached files leads to an assertion:

Xalan xml.xml xsl.xsl

Xalan: /builddir/build/BUILD/xalan_c-1.12/src/xalanc/XSLT/Stylesheet.cpp:238: xalanc_1_12::ElemTemplateElement* xalanc_1_12::Stylesheet::initWrapperless(xalanc_1_12::StylesheetConstructionContext&, const xercesc_3_2::Locator*): Assertion `m_firstTemplate == 0' failed.

Of course invalid.html is not an valid style sheet, but IMHO Xalan should not assert but return a (fatal) error.

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org