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

From Michael Paquier
Subject Re: BUG #18943: Return value of a function 'xmlBufferCreate' isdereferenced at xpath.c:177 without checking for NUL
Date
Msg-id aa53WWdR7E4z345v@paquier.xyz
Whole thread Raw
In response to Re: BUG #18943: Return value of a function 'xmlBufferCreate' isdereferenced at xpath.c:177 without checking for NUL  ("cca5507" <cca5507@qq.com>)
List pgsql-bugs
On Sun, Mar 08, 2026 at 11:05:32PM +0800, cca5507 wrote:
> Attach a small patch.

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.
--
Michael

Attachment

pgsql-bugs by date:

Previous
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: [BUG] Assert failure in ReorderBufferReturnTXN during logical decoding due to leaked specinsert change
Next
From: Vishal Prasanna
Date:
Subject: RE: [BUG] Assert failure in ReorderBufferReturnTXN during logical decoding due to leaked specinsert change