]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Unify src/common/'s definitions of MaxAllocSize.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 11 May 2026 12:13:49 +0000 (05:13 -0700)
committerNoah Misch <noah@leadboat.com>
Mon, 11 May 2026 12:13:49 +0000 (05:13 -0700)
commit47dae5e74025c02a66966b2c44617dacce93b69d
tree903d30807da9d4b7370496ee97886e0315787710
parent66cf26b9e4be1b46a5039bb7ea37f65d1e52e763
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
src/common/psprintf.c
src/common/saslprep.c
src/common/stringinfo.c
src/include/common/fe_memutils.h