Re: Calling xlst_process with certain arguments causes server crash - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Calling xlst_process with certain arguments causes server crash
Date
Msg-id 20758.1338855385@sss.pgh.pa.us
Whole thread Raw
In response to Re: Calling xlst_process with certain arguments causes server crash  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Calling xlst_process with certain arguments causes server crash
List pgsql-bugs
I wrote:
> Hm, apparently xsltApplyStylesheet returns a NULL in this example,
> and we're passing that on to xsltSaveResultToString which is not
> expecting any such thing.  I presume we need another error check
> here, but what should the error say exactly?  Can we get any info
> more detailed than "failed to apply stylesheet"?

Apparently not -- or at least, if libxslt provides any easy way to
extract error reports, it's not evident from the pretty-awful
documentation.  I've committed a fix that just reports "failed to apply
stylesheet".

            regards, tom lane

pgsql-bugs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: BUG #6672: Memory leaks in dumputils.c
Next
From: Tom Lane
Date:
Subject: Re: control character check in JSON type seems broken