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

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: cca5507 <cca5507(at)qq(dot)com>
Cc: Jim Jones <jim(dot)jones(at)uni-muenster(dot)de>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org>, maralist86 <maralist86(at)mail(dot)ru>
Subject: Re: BUG #18943: Return value of a function 'xmlBufferCreate' isdereferenced at xpath.c:177 without checking for NUL
Date: 2026-03-09 07:31:37
Message-ID: aa53WWdR7E4z345v@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Vishal Prasanna 2026-03-09 09:39:51 RE: [BUG] Assert failure in ReorderBufferReturnTXN during logical decoding due to leaked specinsert change
Previous Message Hayato Kuroda (Fujitsu) 2026-03-09 04:52:56 RE: [BUG] Assert failure in ReorderBufferReturnTXN during logical decoding due to leaked specinsert change