code-423n4 / 2022-07-axelar-findings

0 stars 0 forks source link

QA Report #218

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

[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

GalloDaSballo commented 2 years ago

The code will revert as intended, I will mark this as Refactoring