After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 60624 - text node as top level element results in segmentation fault
text node as top level element results in segmentation fault
Status: VERIFIED FIXED
Product: libxslt
Classification: Platform
Component: general
unspecified
Other Linux
: Normal minor
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2001-09-17 08:53 UTC by Stephan Otte
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase (219 bytes, text/plain)
2001-09-17 08:54 UTC, Stephan Otte
Details

Description Stephan Otte 2001-09-17 08:53:23 UTC
====== stylesheet ======
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
version="1.0">
 
a not allowed top level element
 
<xsl:template match="/">
 
</xsl:template>
</xsl:stylesheet>

========================
Processing this styleheet results in segementation fault.

I know that it is not allowed to put text nodes as a top level element of 
a stylesheet, but this should output an error message.

Stephan
Comment 1 Stephan Otte 2001-09-17 08:54:46 UTC
Created attachment 5614 [details]
testcase
Comment 2 Daniel Veillard 2001-09-18 10:02:01 UTC
Oops sorry, this was introduced recently I believe. Very easy
to find and correct. I commited a patch in CVS and added it to
the regression suite.

http://cvs.gnome.org/bonsai/cvsquery.cgi?module=libxslt&branch=HEAD&branchtype=match&dir=libxslt&file=&filetype=match&who=veillard&whotype=match&sortby=Date&hours=&date=explicit&mindate=09%2F18%2F01+05%3A55&maxdate=09%2F18%2F01+05%3A57&cvsroot=%2Fcvs%2Fgnome

 thanks for the report,

Daniel
Comment 3 Daniel Veillard 2001-10-30 18:46:28 UTC
Should be fixed in the last releases,

Daniel