No check in the length of arrays in initializables and initializePayloads could lead to errors if there is a mismatch
The initializeRootUpgrade function does not check if the lengths of initializables and initializePayloads arrays match. This can lead to potential out-of-bounds access or skipped initializations.
If initializePayloads is shorter than initializables, the function will attempt to access non-existent elements of initializePayloads, potentially causing a runtime error.
If initializePayloads is longer than initializables, some payloads will be ignored, which might not be the intended behavior.
If initializePayloads is shorter than initializables, the function will attempt to access non-existent elements of initializePayloads, potentially causing a runtime error.
If initializePayloads is longer than initializables, some payloads will be ignored, which might not be the intended behavior.
Manual Review
Add checks to ensure length of arrays match
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.