The function generateAccentColor
doesn't match the intended ranges for the color properly:
According to the docs:
For saturation:
The maximum saturation value achievable by this calculation is 99, not 100. This is due to how the modulo operation and subsequent addition are structured:
((bitField >> 8) & 0xFF) % 80
yields a maximum of 79 (when the byte is 255).
Adding 20 to 79 results in 99.
For lightness
Same as for saturation, it will reach 30 to 99.
Manual Review
add + 1 for both lightness and saturation. i.e:
https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity
https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity
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.