Re: BUG #3675: Crash on xpath function with 2 parameters - Mailing list pgsql-bugs

From Kris Jurka
Subject Re: BUG #3675: Crash on xpath function with 2 parameters
Date
Msg-id Pine.BSO.4.64.0710131327480.14083@leary.csoft.net
Whole thread Raw
In response to BUG #3675: Crash on xpath function with 2 parameters  ("Jeremy Palmer" <jpalmer@linz.govt.nz>)
Responses Re: BUG #3675: Crash on xpath function with 2 parameters
List pgsql-bugs
On Sat, 13 Oct 2007, Jeremy Palmer wrote:

> The following bug has been logged online:
>
> Bug reference:      3675
> PostgreSQL version: 8.3b1
> Operating system:   WinXP SP2
> Description:        Crash on xpath function with 2 parameters
> Details:
>
> The following query crashes the backend:
>
> SELECT xpath('/my:a/text()', '<my:a
> xmlns:my="http://example.com">test</my:a>');
>

This patch avoids the double free of xpathcomp and fixes things for me.

Kris Jurka

pgsql-bugs by date:

Previous
From: "Rolf de By"
Date:
Subject: BUG #3676: README.TXT is duff gen
Next
From: Tom Lane
Date:
Subject: Re: BUG #3675: Crash on xpath function with 2 parameters