Commit 1cc3a1fa authored by Andrew Waterman's avatar Andrew Waterman
Browse files

Fix UB on signed overflow in mulh routine

We want to evaluate whether the product of a and b is zero mod 2^64,
but the product might overflow, resulting in UB.  If we instead perform
the computation in unsigned arithmetic, the overflow behavior is defined.

Resolves #1538
parent a729aff0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment