Re: Calling xlst_process with certain arguments causes server crash

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgagarinov(at)alliedtesting(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Calling xlst_process with certain arguments causes server crash
Date: 2012-06-05 00:16:25
Message-ID: 20758.1338855385@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2012-06-05 00:48:09 Re: control character check in JSON type seems broken
Previous Message Peter Eisentraut 2012-06-04 23:14:38 Re: BUG #6672: Memory leaks in dumputils.c