Re: [PATCH] contrib/xml2: backend crash in xpath_nodeset() on the namespace axis - Mailing list pgsql-bugs

From Andrey Chernyy
Subject Re: [PATCH] contrib/xml2: backend crash in xpath_nodeset() on the namespace axis
Date
Msg-id 20260612015906.38b47d04@andrnote
Whole thread
In response to Re: [PATCH] contrib/xml2: backend crash in xpath_nodeset() on the namespace axis  (Michael Paquier <michael@paquier.xyz>)
List pgsql-bugs
On Thu, 11 Jun 2026 10:48:30 +0900
Michael Paquier <michael@paquier.xyz> wrote:

> What do you think?  That also deserves a backpatch to me, even if it
> is less worse than the xml2 crash you have reported.
> 
> I have grouped this fix with your patch in the attached.  Both still
> need some tests.  Each fix deserves its own commit, that's just a
> quick FYI version.

Thanks Michael, and thanks for adding the tests and back-patching! The
grouped patch looks good to me - applying the same XML_NAMESPACE_DECL
fallback to xmlXPathCastNodeToString() in core xml.c makes sense too. I
had a regression test in progress, but glad it's already covered.

--
Andrey Chernyy



pgsql-bugs by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Autoprewarm workers terminated due to a segmentation fault
Next
From: Michael Paquier
Date:
Subject: Re: [BUG] false positive in bt_index_check in case of short 4B varlena datum