The giveReview function does not increment the reviewCount for students when a review is given. As a result, the review count remains unchanged regardless of how many reviews a student receives, which can disrupt logic that relies on tracking the number of reviews per student.
The giveReview function is intended to limit the number of reviews a student can receive by checking that reviewCount[_student] < 5. However, the function does not increment reviewCount[_student] after a review is given. As a result, the review count for each student remains at its default value (zero), allowing unlimited reviews to be submitted for a student, and breaking any logic that depends on the review count.
** PoC
The intended restriction on the maximum number of reviews per student is not enforced.
Students can receive more reviews than allowed, potentially leading to unfair or unintended changes in their scores.
Any contract logic or business rules that rely on the review count will not function as expected.
Manual review, Foundry
Increment reviewCount[_student] each time a review is given in the giveReview function to properly enforce the review limit and maintain accurate tracking.
`reviewCount` for students is not updated after each review session
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.