Re: BUG #18943: Return value of a function 'xmlBufferCreate' isdereferenced at xpath.c:177 without checking for NUL

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Alexander Lakhin <exclusion@gmail.com>
Cc: cca5507 <cca5507@qq.com>, Jim Jones <jim.jones@uni-muenster.de>, Tom Lane <tgl@sss.pgh.pa.us>, pgsql-bugs <pgsql-bugs@lists.postgresql.org>, maralist86 <maralist86@mail.ru>
Date: 2026-03-13T07:12:28Z
Lists: pgsql-bugs
On Thu, Mar 12, 2026 at 03:46:57PM +0900, Michael Paquier wrote:
> I am not sure if this is worth backpatching, so let's just use
> something like the attached on HEAD.  This result cannot be NULL,
> historically it has always been an empty string.

Looking at the history of the tree, things like 46ab07ffda9d were
mentioned as worth a backpatch, so applied down to v14 for this one as
well.
--
Michael

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. xml2: Fix failure with xslt_process() under -fsanitize=undefined

  2. Fix misuse of "volatile" in xml.c

  3. xml2: Improve error handling of libxml2 calls

  4. Improve error handling of libxml2 calls in xml.c