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

Richard Guo <guofenglinux@gmail.com>

From: Richard Guo <guofenglinux@gmail.com>
To: Xing Guo <higuoxing@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2026-06-24T00:37:24Z
Lists: pgsql-hackers
On Tue, Jun 23, 2026 at 4:14 PM Richard Guo <guofenglinux@gmail.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



Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. plperl: Fix NULL pointer dereference for forged array object