Skip to content
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

lang: Add checked operations for lamport management #2563

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kevinrodriguez-io
Copy link
Contributor

References: #2552

This PR adds checked operations for lamport management in order to avoid Numeric Overflow exploits.

Pending:

  • Add tests for failing scenarios (A numeric overflow is triggered u64 variant).

@vercel
Copy link

vercel bot commented Jul 9, 2023

@kevinrodriguez-io is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@kevinrodriguez-io
Copy link
Contributor Author

@acheroncrypto can you throw a quick review on this?

@acheroncrypto
Copy link
Collaborator

This PR adds checked operations for lamport management in order to avoid Numeric Overflow exploits.

Are you able to exploit this?

@kevinrodriguez-io
Copy link
Contributor Author

Will add tests, I'm a bit unfamiliar with running all the anchor toolchain but I'll attempt to trigger an exploit with a test later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants