Re: Potential null pointer dereference in postgres.c

From: Maxim Orlov <orlovmg(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Karina Litskevich <litskevichkarina(at)gmail(dot)com>, Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Potential null pointer dereference in postgres.c
Date: 2024-12-06 15:52:20
Message-ID: CACG=ezapwKWUf6NDO6g65h=gyBuFp_b4tYLVcft-tEqHKg7+2g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I'm glad you are bringing up this issue. By the way, there are two more
annoying places in postmaster.c for pg16 and older. See, strdup() also may
fail if insufficient memory available.

PFA patch for a REL_16_STABLE. It also applies to older versions.

--
Best regards,
Maxim Orlov.

Attachment Content-Type Size
v2-0001-Use-pstrdup-for-remote_host-and-remote_port-save-.patch application/octet-stream 1015 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message jian he 2024-12-06 16:01:53 Re: refactor AlterDomainAddConstraint (alter domain add constraint)
Previous Message Nathan Bossart 2024-12-06 15:39:43 Re: Popcount optimization using SVE for ARM