Two errors are present in the code which will prevent to return the right error:
The revert statement uses the wrong memory offset. It should use the same offset as mstore, plus 28 bytes, because the selector is placed at the end of the 32 bytes in memory and has a length of 4. Here, it should be 0x5c.
The selector 0xbac65e5b does not correspond to MathMasters__MulWadFailed. The correct selector for this error is 0xa56044f7.
Likelihood: Medium
Will occur every the multiplication overflows.
Impact: Low
The program will revert with no error, leading to unexpected behavior in any contract using this library.
Replace the values as follows:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.