You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Roger Leigh (Jira)" <ji...@apache.org> on 2020/05/24 21:09:00 UTC

[jira] [Updated] (XALANC-751) Segmentation fault in TestXSLT

     [ https://issues.apache.org/jira/browse/XALANC-751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roger Leigh updated XALANC-751:
-------------------------------
    Fix Version/s: 1.12
      Description: 
Forwarded from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718303

TestXSLT segfaults under certain input instead of returning an error.  My testing indicates that this issue began in SVN rev 1388736, as 1388735 appears to exhibit the correct behavior.

The issue can be reproduced as follows:

$ cat var-in-xslkey.xsl
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="var"/>
<xsl:key name="key" match="*[@id != $var]" use="''"/>
</xsl:stylesheet>

$ xalan -xsl var-in-xslkey.xsl -in var-in-xslkey.xsl

Expected Results (1388735 and before):

XSLException Type is: XPathParserException
Message is: A variable reference is allowed in a match pattern or
expression in this context.
pattern = '*[@id != $var]' Remaining tokens are:  ( 'var' ']')
(var-in-xslkey.xsl, line 5, column 54)

Actual Results (1388736 and later):

XPath error: A variable reference is allowed in a match pattern or expression in this context.
pattern = '*[@id != $var]' Remaining tokens are:  ( 'var' ']') (Occurred in an unknown entity, at line 5, column 5.)
Segmentation fault





  was:

Forwarded from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718303

TestXSLT segfaults under certain input instead of returning an error.  My testing indicates that this issue began in SVN rev 1388736, as 1388735 appears to exhibit the correct behavior.

The issue can be reproduced as follows:

$ cat var-in-xslkey.xsl
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="var"/>
<xsl:key name="key" match="*[@id != $var]" use="''"/>
</xsl:stylesheet>

$ xalan -xsl var-in-xslkey.xsl -in var-in-xslkey.xsl

Expected Results (1388735 and before):

XSLException Type is: XPathParserException
Message is: A variable reference is allowed in a match pattern or
expression in this context.
pattern = '*[@id != $var]' Remaining tokens are:  ( 'var' ']')
(var-in-xslkey.xsl, line 5, column 54)

Actual Results (1388736 and later):

XPath error: A variable reference is allowed in a match pattern or expression in this context.
pattern = '*[@id != $var]' Remaining tokens are:  ( 'var' ']') (Occurred in an unknown entity, at line 5, column 5.)
Segmentation fault






> Segmentation fault in TestXSLT
> ------------------------------
>
>                 Key: XALANC-751
>                 URL: https://issues.apache.org/jira/browse/XALANC-751
>             Project: XalanC
>          Issue Type: Bug
>          Components: XalanC
>    Affects Versions: 1.11
>         Environment: Debian GNU/Linux
>            Reporter: Bill Blough
>            Assignee: Steven J. Hathaway
>            Priority: Critical
>             Fix For: 1.12
>
>
> Forwarded from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718303
> TestXSLT segfaults under certain input instead of returning an error.  My testing indicates that this issue began in SVN rev 1388736, as 1388735 appears to exhibit the correct behavior.
> The issue can be reproduced as follows:
> $ cat var-in-xslkey.xsl
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0"
>                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:param name="var"/>
> <xsl:key name="key" match="*[@id != $var]" use="''"/>
> </xsl:stylesheet>
> $ xalan -xsl var-in-xslkey.xsl -in var-in-xslkey.xsl
> Expected Results (1388735 and before):
> XSLException Type is: XPathParserException
> Message is: A variable reference is allowed in a match pattern or
> expression in this context.
> pattern = '*[@id != $var]' Remaining tokens are:  ( 'var' ']')
> (var-in-xslkey.xsl, line 5, column 54)
> Actual Results (1388736 and later):
> XPath error: A variable reference is allowed in a match pattern or expression in this context.
> pattern = '*[@id != $var]' Remaining tokens are:  ( 'var' ']') (Occurred in an unknown entity, at line 5, column 5.)
> Segmentation fault



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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