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 105450 - segfault on document('adsfa.xml')/*
segfault on document('adsfa.xml')/*
Status: VERIFIED FIXED
Product: libxslt
Classification: Platform
Component: general
1.0.25
Other Windows
: Normal normal
: ---
Assigned To: Daniel Veillard
Daniel Veillard
: 105629 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-02-07 00:32 UTC by Mark Vakoc
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
example stylesheet (201 bytes, text/xml)
2003-02-07 00:33 UTC, Mark Vakoc
Details

Description Mark Vakoc 2003-02-07 00:32:35 UTC
Using document('doc.xml')/* where doc.xml doesn't exist produces a 
crash.  It is only when you add additional logic behind hte document() 
function, i.e. the following works

<xsl:copy-of select="document('doc.xml')"/>

and the following crashes

<xsl:copy-of select="document('doc.xml')/*/*"/>

when doc.xml doesn't exist.

(note:  gssxslt is xsltproc with two additional lines to register custom 
extensions)

C:\>gssxslt --version
Using libxml 20501, libxslt 10024 and libexslt 715
xsltproc was compiled against libxml 20501, libxslt 10024 and libexslt 715
libxslt 10024 was compiled against libxml 20501
libexslt 715 was compiled against libxml 20501

See attached sample stylesheet
Comment 1 Mark Vakoc 2003-02-07 00:33:20 UTC
Created attachment 14177 [details]
example stylesheet
Comment 2 Daniel Veillard 2003-02-07 14:48:33 UTC
Okay double bug:
  - the crash which was fixed while fixing #105418
  - the result which was incorrect du to a = '#' instead of
    == '#' <grin/>

  thanks for the report !

Daniel
Comment 3 Daniel Veillard 2003-02-09 10:55:42 UTC
*** Bug 105629 has been marked as a duplicate of this bug. ***
Comment 4 Daniel Veillard 2003-02-11 12:45:14 UTC
this should be fixed in libxslt-1.0.26 release,

  thanks,

Daniel