Re: [PATCH] Fix segmentation fault and infinite loop in jsonb_{plperl,plpython}

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Aleksander Alekseev <aleksander@tigerdata.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-06-16T19:46:38Z
Lists: pgsql-hackers
Aleksander Alekseev <aleksander@tigerdata.com> writes:
> I discovered several bugs in jsonb_plperl and jsonb_plpython.

Good catches, will take care of this.

(I'm inclined to fold these into one patch, though.)

			regards, tom lane



Commits

  1. hstore_plperl: Add CHECK_FOR_INTERRUPTS() in reference-unwinding loop.

  2. jsonb_plperl, jsonb_plpython: Fix unguarded recursion and loops.