Adding a requires for now to ensure that a cast will not result in an overflow, and failing if this is not the case.
While this mitigates that overflow risk, I believe it is not the best solution & I spent a good amount of time thinking of others. I will open an issue for further discussion, though, since the solution is outside the scope of audit-related fix.
Adding a
requires
for now to ensure that a cast will not result in an overflow, and failing if this is not the case.While this mitigates that overflow risk, I believe it is not the best solution & I spent a good amount of time thinking of others. I will open an issue for further discussion, though, since the solution is outside the scope of audit-related fix.