Re: plpython: NULL pointer dereference on broken sequence objects

Richard Guo <guofenglinux@gmail.com>

From: Richard Guo <guofenglinux@gmail.com>
To: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
Cc: Pg Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-06-29T03:01:16Z
Lists: pgsql-hackers
On Fri, Jun 26, 2026 at 4:22 PM Ayush Tiwari
<ayushtiwari.slg01@gmail.com> wrote:
> On Fri, 26 Jun 2026 at 11:35, Richard Guo <guofenglinux@gmail.com> wrote:
>> Right.  Those functions have the same issue as PySequence_GetItem().
>> The attached v2 patch fixes them all.

> Thanks for the update! v2 LGTM.

Thanks for the review.  Pushed and back-patched down to v14.

- Richard



Commits

  1. plpython: Fix NULL pointer dereferences for broken sequence and mapping objects