[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
- 0001-Use-mul_size-for-allocation-products-potentially-to-.patch (application/octet-stream) patch 0001
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