Re: Missing checks when malloc returns NULL...

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Aleksander Alekseev <a(dot)alekseev(at)postgrespro(dot)ru>
Cc: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Missing checks when malloc returns NULL...
Date: 2016-08-30 06:15:51
Message-ID: CAB7nPqRB2qQVughKon-viUwACR4mKPnFRu4hu4aAKBX=UpVjEg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Aug 30, 2016 at 2:57 PM, Michael Paquier
<michael(dot)paquier(at)gmail(dot)com> wrote:
> The funny part here is that ProcGlobal->allProcs is actually handled,
> but not the two others. Well yes, you are right, we really need to
> fail on FATAL for all of them if ShmemAlloc returns NULL as they
> involve the shmem initialization at postmaster startup.

And with an actual patch things are better.
--
Michael

Attachment Content-Type Size
malloc-nulls-v5.patch application/x-patch 29.1 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2016-08-30 06:42:39 Re: OpenSSL 1.1 breaks configure and more
Previous Message Michael Paquier 2016-08-30 06:14:36 Re: Missing checks when malloc returns NULL...