pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: dan-eli@mail.ru
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18891: /src/include/lib/simplehash.h possible palloc0 problems
Date: Thu, 10 Apr 2025 14:04:39 -0400
Message-ID: <537550.1744308279@sss.pgh.pa.us> (raw)
In-Reply-To: <18891-16499b7cbaf2661a@postgresql.org>
References: <18891-16499b7cbaf2661a@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> On line 1080 there is an initiallization of array with the usage of palloc0.
> On the server side there is no problem as the server version of palloc never
> returns NULL. However simplehash is used in some utils: pg_dump,
> pg_verifybackup, pg_rewind. It seems these utils use the frontend version of
> palloc. Therefore it is required to add a NULL check if FRONTEND macro is
> defined.

Have you read the frontend version of palloc?

			regards, tom lane





view thread (2+ messages)

Message-ID: <537550.1744308279@sss.pgh.pa.us>
Permalink:  ../537550.1744308279@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/537550.1744308279@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dan-eli@mail.ru, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18891: /src/include/lib/simplehash.h possible palloc0 problems
  In-Reply-To: <537550.1744308279@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox