-
Notifications
You must be signed in to change notification settings - Fork 12.2k
Fix invalid length check in SignatureChecker #5973
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix invalid length check in SignatureChecker #5973
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks!
WalkthroughThe pull request modifies contracts/utils/cryptography/SignatureChecker.sol. In the function isValidERC1271SignatureNow, the minimum returndata size check for ERC-1271 validation was increased from 0x19 (25 bytes) to 0x1f (31 bytes). The function still requires the call to succeed and the returned data to start with the expected selector. No arguments, external interfaces, or exported/public declarations were changed. Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the mess, I got messed up with #5974
Fix invalid value introduced in the 5.5 refactor.
0x20
minus one is0x1f
and not0x19
. Typical decimal/hexadecimal confusion.PR Checklist
npx changeset add
)