Missing overflow checks in function selectWinner()
Contract theoretically could be initialized with extremely high value for 'raffleDuration' that could cause overflow which happens quietly in solidity ^0.7.6.
The selectWinner() check 'require(block.timestamp >= raffleStartTime + raffleDuration, "PuppyRaffle: Raffle not over")' could be compromised by an overflow.
I set Medium severity because the likelihood is not high.
Manual review
Check for overflow
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.