[PATCH] Use mul_size for allocation products potentially to overflow - Mailing list pgsql-hackers

From Xing Guo
Subject [PATCH] Use mul_size for allocation products potentially to overflow
Date
Msg-id CACpMh+BxvqwPr6DqOGz_gLWWSPX+EgVLiOwMpqg5e71uvszdbA@mail.gmail.com
Whole thread
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Adding REPACK [concurrently]
Next
From: Alexander Korotkov
Date:
Subject: Re: Bug: WAIT FOR LSN crashes with assertion failure inside PL/pgSQL DO blocks and procedures