Unify src/common/'s definitions of MaxAllocSize.
Tom Lane <tgl@sss.pgh.pa.us>
Author:
Tom Lane <tgl@sss.pgh.pa.us>
Committer:
Noah Misch <noah@leadboat.com>
Date: 2026-05-11T12:13:51Z
Releases:
14.23
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
Files
| Path | Change | +/− |
|---|---|---|
| src/common/psprintf.c | modified | +0 −3 |
| src/common/saslprep.c | modified | +0 −4 |
| src/common/stringinfo.c | modified | +0 −3 |
| src/include/common/fe_memutils.h | modified | +12 −0 |