Function roundUpDiv() in LibMath.sol library does not check if b parameter is zero
As written in summary: roundUpDiv() function does not check if denominator is zero
Dividing by zero will cause unexpected error
Foundry test:
Result of the test:
Add following line at the beginning of roundUpDiv() function:
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.