]> 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:48 +0000 (05:13 -0700)
committerNoah Misch <noah@leadboat.com>
Mon, 11 May 2026 12:13:48 +0000 (05:13 -0700)
commite5babf7541d39cf7c2aee54a5034b1109b9e93ed
tree5343ba91121c2821f5bce000520709df40428661
parent32a4ce55ccabe4c1e9b1e45d4efc1e62e69fc754
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