Skip to content

Commit c50704e

Browse files
committed
Fix invalid length check in SignatureChecker
1 parent 765b288 commit c50704e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/utils/cryptography/SignatureChecker.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ library SignatureChecker {
8383
mcopy(add(ptr, 0x44), signature, add(length, 0x20))
8484

8585
let success := staticcall(gas(), signer, ptr, add(length, 0x64), 0x00, 0x20)
86-
result := and(success, and(gt(returndatasize(), 0x19), eq(mload(0x00), selector)))
86+
result := and(success, and(gt(returndatasize(), 0x1f), eq(mload(0x00), selector)))
8787
}
8888
}
8989

0 commit comments

Comments
 (0)