Using a reserved memory slot to store data.
According to the following solidity documentation, the memory slot 0x40
is reserved for the currently allocated memory size and should not be used for other purposes.
However in MathMasters
this slot is used in the following fashion. Which overwrites the current value, and could potentially lead to memory issues.
As the function reverts immediatly after this action the impact will only be that we'll not get the correct error message.
Manual review.
Make the following changes
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.