[PATCH] Use mul_size for allocation products potentially to overflow

Xing Guo <higuoxing@gmail.com>

From: Xing Guo <higuoxing@gmail.com>
To: pgsql-hackers@lists.postgresql.org
Date: 2026-04-09T05:13:59Z
Lists: pgsql-hackers

Attachments

Hi hackers,

I spotted several call sites multiplying runtime variables in palloc
and they can potentially lead
to overflow. I fixed them with mul_size() in backend codes and
pg_mul_size_overflow() in frontend codes.

Best Regards,
Xing