agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
pgsql: Unify src/common/'s definitions of MaxAllocSize.
5+ messages / 2 participants
[nested] [flat]

* pgsql: Unify src/common/'s definitions of MaxAllocSize.
@ 2024-10-28 18:39  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2024-10-28 18:39 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Unify src/common/'s definitions of MaxAllocSize.

As threatened in the previous patch, 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.

While this would probably be safe to back-patch, I'll refrain
(for now anyway).

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/11b7de4a784135d7a9bce4a29ede092797749efc

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(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Unify src/common/'s definitions of MaxAllocSize.
@ 2026-05-11 12:19  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Noah Misch @ 2026-05-11 12:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_17_STABLE

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

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(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Unify src/common/'s definitions of MaxAllocSize.
@ 2026-05-11 12:19  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Noah Misch @ 2026-05-11 12:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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 <tgl@sss.pgh.pa.us>

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(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Unify src/common/'s definitions of MaxAllocSize.
@ 2026-05-11 12:19  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Noah Misch @ 2026-05-11 12:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_15_STABLE

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

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(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Unify src/common/'s definitions of MaxAllocSize.
@ 2026-05-11 12:19  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Noah Misch @ 2026-05-11 12:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_14_STABLE

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

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(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2026-05-11 12:19 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-10-28 18:39 pgsql: Unify src/common/'s definitions of MaxAllocSize. Tom Lane <tgl@sss.pgh.pa.us>
2026-05-11 12:19 pgsql: Unify src/common/'s definitions of MaxAllocSize. Noah Misch <noah@leadboat.com>
2026-05-11 12:19 pgsql: Unify src/common/'s definitions of MaxAllocSize. Noah Misch <noah@leadboat.com>
2026-05-11 12:19 pgsql: Unify src/common/'s definitions of MaxAllocSize. Noah Misch <noah@leadboat.com>
2026-05-11 12:19 pgsql: Unify src/common/'s definitions of MaxAllocSize. Noah Misch <noah@leadboat.com>

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