2
0
mirror of https://github.com/boostorg/wave.git synced 2026-01-19 16:52:15 +00:00

1 Commits

Author SHA1 Message Date
Jeff Trull
df2125a1bd Repair Overflow Checks
The previous code checked for signed overflow on +, -, and * by doing
the operation and checking the result, which can invoke undefined
behavior. This replaces that code with initial tests on the operands.

In addition, a test for the sole integer division overflow case (that
is not division by zero) was missing: INT_MIN / -1
It has now been added, along with a test case.
2024-06-25 15:00:02 -07:00