Statistics::stddev
can revert due to incorrect data type usage in the Statistics::variance
function.
The Statistics::variance
function is used to calculate variance.
The issue is the way we calculate the diff
which is uint
(unsigned integer), this can cause underflow in a case where data[i]
< mean
.
The Statistics::stddev
function will revert, which in turn reverts a crucial call (finalizeValidation
).
Manual Review.
It is recommended to use signed integer instead of unsigned.
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.