public inbox for [email protected]  
help / color / mirror / Atom feed
From: Noah Misch <[email protected]>
To: [email protected]
Subject: pgsql: Unify src/common/'s definitions of MaxAllocSize.
Date: Mon, 11 May 2026 12:19:39 +0000
Message-ID: <[email protected]> (raw)

Unify src/common/'s definitions of MaxAllocSize.

Define MaxAllocSize in src/include/common/fe_memutils.h rather
than having several copies of it in different src/common/*.c files.
This also provides an opportunity to document it better.

Back-patch of commit 11b7de4a7, needed now because assorted security
fixes are adding additional references to MaxAllocSize in frontend
code.

Backpatch-through: 14-17
Security: CVE-2026-6473

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/47dae5e74025c02a66966b2c44617dacce93b69d
Author: Tom Lane <[email protected]>

Modified Files
--------------
src/common/psprintf.c            |  3 ---
src/common/saslprep.c            |  4 ----
src/common/stringinfo.c          |  3 ---
src/include/common/fe_memutils.h | 12 ++++++++++++
4 files changed, 12 insertions(+), 10 deletions(-)



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: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: pgsql: Unify src/common/'s definitions of MaxAllocSize.
  In-Reply-To: <[email protected]>

* 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