Skip to content

Commit

Permalink
Add length check, just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorized committed Feb 26, 2025
1 parent d2b5c0d commit 1ca51d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Delegation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ contract Delegation is EIP712, GuardedExecutor {
// Check that `s` begins with hex"64bd801814b6f04586b2680170".
bytes13(s) != bytes13(keccak256("PREP_MAGIC"));
) {
if (signature.length < 0x20 * 2 + 0x14) break; // Length check, just in case.
// Break if `isRootless` has already been initialized.
if (_getDelegationStorage().isRootless) break;
// Break if `r` does not match digest. There is an astronomically low chance that `digest`
Expand Down

0 comments on commit 1ca51d1

Please sign in to comment.