The root cause of this issue is the unsafe downcasting of a signed integer (int8) to an unsigned integer (uint8), which does not handle negative values correctly and can result in unexpected behavior. If a player's score is negative, the cast to uint8 will result in an incorrect and potentially very large positive value, leading to incorrect reward calculations.
Overflow/Underflow: Downcasting can cause overflow or underflow issues, leading to unintended behavior or vulnerabilities.
Manual review
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.