Re: [PATCH v1] PL/Perl: Fix NULL deref for forged array

From: Richard Guo <guofenglinux(at)gmail(dot)com>
To: Xing Guo <higuoxing(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH v1] PL/Perl: Fix NULL deref for forged array
Date: 2026-06-24 00:37:24
Message-ID: CAMbWs49AqkksDO7aKA869sSMkYBDbVA+Y+L3UiTAqQKAxrr8HQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jun 23, 2026 at 4:14 PM Richard Guo <guofenglinux(at)gmail(dot)com> wrote:
> +1. Good catch. Every other caller of hv_fetch_string checks the
> returned pointer. This is the only place missing that safety check.

I've committed and back-patched this patch after some cosmetic tweaks.

- Richard

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2026-06-24 00:41:16 Re: Fix publisher-side sequence permission reporting
Previous Message Masahiko Sawada 2026-06-24 00:21:51 Re: Add a hook for handling logical decoding messages on subscribers.