pgsql: Replace fixed-size, too-short array with a palloc'd one.

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Replace fixed-size, too-short array with a palloc'd one.
Date: 2026-08-10 13:41:21
Message-ID: E1wtQFl-00000000y3a-3lPZ@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Replace fixed-size, too-short array with a palloc'd one.

MatchNamedCall's arggiven array was declared FUNC_MAX_ARGS long,
but we may actually use up to pronallargs elements, and that can
be more than FUNC_MAX_ARGS if the function has OUT arguments
(cf. ProcedureCreate). Convert it to a palloc'd array.

Reported-by: Zheng Yu <zheng(at)depthfirst(dot)com>
Reported-by: ylwangtju <ylwangtju(at)qq(dot)com>
Author: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Reviewed-by: Michael Paquier <michael(at)paquier(dot)xyz>
Reviewed-by: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
Backpatch-through: 14
Security: CVE-2026-14679

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/92972e815d85038ccb8574a1d7e2f2df8d148fe9
Author: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>

Modified Files
--------------
src/backend/catalog/namespace.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2026-08-10 13:41:22 pgsql: Return nulls honestly in aggregate "combine" functions.
Previous Message Noah Misch 2026-08-10 13:41:20 pgsql: Fix pg_trgm's picksplit function with all-true datums