Re: BUG #19092: scram_free() will free on address which was not malloc()-ed in pg_scram_mech - Mailing list pgsql-bugs

From Michael Paquier
Subject Re: BUG #19092: scram_free() will free on address which was not malloc()-ed in pg_scram_mech
Date
Msg-id aPl235F3k3ZDeAfj@paquier.xyz
Whole thread Raw
In response to Re: BUG #19092: scram_free() will free on address which was not malloc()-ed in pg_scram_mech  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #19092: scram_free() will free on address which was not malloc()-ed in pg_scram_mech
List pgsql-bugs
On Tue, Oct 21, 2025 at 11:06:19AM -0400, Tom Lane wrote:
> We'd really need to see a concrete example to decide whether this is
> a PG bug or user error.  I think the SASL stuff is sufficiently poorly
> tested that it could be a previously-unknown PG bug, but it's not clear.

[ .. double-checking the code .. ]

FWIW, I doubt that this is something we need to worry about and I
suspect that there is no action item here.  dblink and WAL receivers
do their stuff so as the main backend code does not link with libpq,
and I doubt that we'd ever want to enter in the territory where
FRONTEND becomes a thing in libpq.

Of course, I may prove wrong.

> So: test case, please.

Yes.
--
Michael

Attachment

pgsql-bugs by date:

Previous
From: David Rowley
Date:
Subject: Re: ERROR: XX000: could not find memoization table entry (reproducible)
Next
From: Ishan Arunkumar Joshi
Date:
Subject: RE: BUG #18942 and BUG #18938 solution available in Pg16 latest release 16.10