mirror of
https://github.com/boostorg/wave.git
synced 2026-01-19 16:52:15 +00:00
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.