Chad Rosenquist created XALANC-774:
--------------------------------------
Summary: Crash in XalanTransformer::transform() if extra
parenthesis is in XSL.
Key: XALANC-774
URL: https://issues.apache.org/jira/browse/XALANC-774
Project: XalanC
Issue Type: Bug
Components: XalanC
Affects Versions: 1.11
Environment: RedHat Linux 7
Reporter: Chad Rosenquist
Assignee: Steven J. Hathaway
Priority: Minor
Attachments: crash_stack.txt, crash.xml, crash.xsl, SimpleTransform.cpp
Hi,
I ran into an issue where I am getting a crash during a transform because of a
syntax error in the XSL. I am expecting the transformer to report an error
instead of a crash. To reproduce the crash:
1. Edit the SimpleTransform.cpp file located in
xalan-c-1.11/c/samples/SimpleTransform to call my crash.xml and crash.xsl files.
2. Run the transform and see the SIGABRT generated (if compiled in debug mode):
SimpleTransform:
/apps/uadev/tfuas/Dev/build/xalan-c-1.11/c/src/xalanc/XalanDOM/XalanDOMString.cpp:72:
xalanc_1_11::XalanDOMString::XalanDOMString(const XalanDOMChar*,
xercesc_3_1::MemoryManager&, xalanc_1_11::XalanDOMString::size_type): Assertion
`theString != 0' failed.
Abort
If not compiled in debug mode, it crashes with a SEGV.
3. The crash is because the following line in the XSL:
<xsl:value-of select="(string($var1_resultof_first/@ID)"/>
should be:
<xsl:value-of select="string($var1_resultof_first/@ID)"/>
Thanks,
Chad
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]