Re: BUG #18247: Integer overflow leads to negative width

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: RekGRpth <rekgrpth(at)gmail(dot)com>
Cc: Richard Guo <guofenglinux(at)gmail(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18247: Integer overflow leads to negative width
Date: 2023-12-15 03:20:21
Message-ID: 2903192.1702610421@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

RekGRpth <rekgrpth(at)gmail(dot)com> writes:
> How bad would it be if, after overflowing, the width value was within
> the allowed range?

Really pretty negligible, I should think. You might get a not-great
choice of plan. As Richard noted, there are some Asserts you could
hit; but not in a production build.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Alexander Lakhin 2023-12-15 06:00:00 Re: BUG #18247: Integer overflow leads to negative width
Previous Message RekGRpth 2023-12-15 03:13:44 Re: BUG #18247: Integer overflow leads to negative width