Open code423n4 opened 2 years ago
cmichel
The index += 32 addition in readBytes32 can be put in an unsafe block as the array length is already checked to be greater than the addition.
index += 32
readBytes32
unsafe
resolved https://github.com/AmbireTech/adex-protocol-eth/commit/282fdb03e7da531696ccdb47596d84369c5b70f1
Agree with the finding, the sponsor has implemented the improvement
Handle
cmichel
Vulnerability details
The
index += 32
addition inreadBytes32
can be put in anunsafe
block as the array length is already checked to be greater than the addition.