Re: [PATCH] contrib/xml2: backend crash in xpath_nodeset() on the namespace axis

From: Andrey Chernyy <andrey(dot)cherny(at)tantorlabs(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] contrib/xml2: backend crash in xpath_nodeset() on the namespace axis
Date: 2026-06-11 22:59:06
Message-ID: 20260612015906.38b47d04@andrnote
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, 11 Jun 2026 10:48:30 +0900
Michael Paquier <michael(at)paquier(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2026-06-12 01:27:23 Re: [PATCH] contrib/xml2: backend crash in xpath_nodeset() on the namespace axis
Previous Message Masahiko Sawada 2026-06-11 19:20:17 Re: uuidv7 improperly accepts dates before 1970-01-01