The error involves incorrect slot addressing, leading to potential data misalignment. This is due to the improper handling of storage slot increments based on the index maxI
.
The function in question attempts to store data in Ethereum storage slots by incrementing the base slot address with the index maxI directly, without accounting for the 32 byte size of each slot. This leads to misaligned accesses where the add(slot, maxI)
operation does not correctly calculate the 32-byte boundary of eth storage slots :
In the previous block maxI
is not scaled by 32.
This can lead to misaligned data handling where incomplete data is stored
Manual review
Consider 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.