The giveReview()
function does not increment the reviewCount[_student]
counter. Despite having a condition that checks if the maximum number of reviews has been reached, the lack of incrementing this counter means the condition is never met, and thus the number of allowed reviews is not limited.
This inconsistency prevents proper validation based on the number of reviews, breaking the system's functional requirements.
Students can continue receiving reviews without a practical limit, as the counter is not incremented and the cutoff condition is never met.
It is impossible to verify if they have been fully evaluated.
Promotion is blocked, as the system relies on this counter to validate whether a student has completed their evaluation cycle.
This test demonstrates that a student can receive up to 7 reviews because the reviewCount
counter is not incremented within giveReview()
.
Add the following line inside giveReview()
:
`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.