agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Replace fixed-size, too-short array with a palloc'd one.
Date: Mon, 10 Aug 2026 13:41:29 +0000
Message-ID: <E1wtQFt-00000000yGG-0fTh@gemulon.postgresql.org> (raw)

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@depthfirst.com>
Reported-by: ylwangtju <ylwangtju@qq.com>
Author: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Backpatch-through: 14
Security: CVE-2026-14679

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8c67c4cf59041a6ec2a1fa40e47b1490d75908bf
Author: Tom Lane <tgl@sss.pgh.pa.us>

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



view thread (6+ messages)  latest in thread

Message-ID: <E1wtQFt-00000000yGG-0fTh@gemulon.postgresql.org>
Permalink:  ../E1wtQFt-00000000yGG-0fTh@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wtQFt-00000000yGG-0fTh@gemulon.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Replace fixed-size, too-short array with a palloc'd one.
  In-Reply-To: <E1wtQFt-00000000yGG-0fTh@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox