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: cca5507 <cca5507@qq.com>
Cc: 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-09T22:10:13Z
Lists: pgsql-bugs
On Mon, Mar 09, 2026 at 04:31:37PM +0900, Michael Paquier wrote:
> You are right, this needs to consider the pointer variable as
> volatile, as done in your patch, and not treat as volatile what is
> pointed at.  This comes from 2e947217474c, as of HEAD.  I'll take care
> of it later.  The same business has been fixed in xml2 as of
> 93001888d85c. 

Fixed as of 6307b096e259.
--
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