sqrt
function of MathMasters library uses incorrect constant value for comparison, which leads to wrong answer for certain cases.
The vulnerability occurs due to the usage of wrong value for comparison.
At line 77, constant value 16777002
is used instead of 16777215
.
Value of r
calculated at line 77 will be incorrect for some test cases and will lead to wrong answer.
Manual Review
Change 16777002
to 16777215
at line 77.
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.