From ffa89ad043641188a298b58f07a56611a0264b70 Mon Sep 17 00:00:00 2001 From: David Christensen Date: Thu, 25 Jun 2026 17:03:41 -0500 Subject: [PATCH] Change PG_RETURN_NULL to PG_RETURN_VOID PG_RETURN_NULL() dereferences `fcinfo`, which causes a segfault in this code path. --- src/types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.c b/src/types.c index a16f6ec..3e97552 100644 --- a/src/types.c +++ b/src/types.c @@ -924,7 +924,7 @@ Datum pljs_jsvalue_to_datum(Oid rettype, JSValue val, bool *is_null, *is_null = true; } - PG_RETURN_NULL(); + PG_RETURN_VOID(); } }