Open code423n4 opened 2 years ago
Array out-of-bounds access causes a revert without any informative error message (it raises a Panic(0x32) exception).
Panic(0x32)
Check that an index which is used to access an array element fits the array's boundaries before accessing that array element.
AxelarAuthWeighted.sol
operatorIndex
< weights.length
The code will revert as intended, I will mark this as Refactoring
[1] Array out-of-bounds
Array out-of-bounds access causes a revert without any informative error message (it raises a
Panic(0x32)
exception).Recommendation
Check that an index which is used to access an array element fits the array's boundaries before accessing that array element.
Code References
AxelarAuthWeighted.sol
: line 105 (operatorIndex
must be< weights.length
)