Re: BUG #5592: list of integer undefined behaviors - Mailing list pgsql-bugs

From John Regehr
Subject Re: BUG #5592: list of integer undefined behaviors
Date
Msg-id 4C588A94.2040102@cs.utah.edu
Whole thread Raw
In response to Re: BUG #5592: list of integer undefined behaviors  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
> Just to follow up: all the other ones seem to be non-problems.

Would you folks be willing to specify which arithmetic operations are
considered to be safe in the case of overflow?  Something simple like an
"INTEGER_OVERFLOW_OK" comment at the end of the line of code containing
the operation would suffice.  This would let me automatically filter out
error messages on these lines of code in the future.

John Regehr

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #5592: list of integer undefined behaviors
Next
From: John Regehr
Date:
Subject: Re: BUG #5592: list of integer undefined behaviors