Skip to content

[Certora] Check Bundler safety #178

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

Merged
merged 21 commits into from
Jan 6, 2025
Merged

Conversation

colin-morpho
Copy link
Contributor

@colin-morpho colin-morpho commented Dec 13, 2024

This PR aims to check the bundler's main safety properties.
Due to the complicated control flow involved in executing bundles, it may be hard to convince oneself that the Bundler behaves safely.
So we check that the transient storage is always in expected states, we ensure that reentering is only possible in expected situations and that bad configurations will revert.

Apparently, Certora's tools do not provide support for the transient keyword just yet, for this reason verification is run on munged files that implement transient variables using assembly instructions for the time being.

Before accepting this PR make sure of the following:

  • README is up to date;
  • CI is updated;
  • verification succeeds.

@colin-morpho colin-morpho marked this pull request as draft December 13, 2024 15:24
@colin-morpho colin-morpho self-assigned this Dec 13, 2024
@colin-morpho colin-morpho added the verif Fromal verification with Certora label Dec 13, 2024
Copy link
Contributor Author

@colin-morpho colin-morpho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc improvements.

Signed-off-by: Colin | Morpho 🦋 <[email protected]>
@colin-morpho colin-morpho marked this pull request as ready for review December 13, 2024 15:57
@colin-morpho colin-morpho mentioned this pull request Dec 13, 2024
5 tasks
@QGarchery QGarchery marked this pull request as draft December 13, 2024 18:02
@QGarchery
Copy link
Contributor

converting to draft to make sure we don't merge by accident

Co-authored-by: Quentin Garchery <[email protected]>
Signed-off-by: Colin | Morpho 🦋 <[email protected]>
QGarchery
QGarchery previously approved these changes Dec 30, 2024
Base automatically changed from dev to main January 3, 2025 15:51
@adhusson adhusson dismissed QGarchery’s stale review January 3, 2025 15:51

The base branch was changed.

@MathisGD MathisGD marked this pull request as ready for review January 6, 2025 13:44
@colin-morpho colin-morpho merged commit bd73de3 into main Jan 6, 2025
5 checks passed
@colin-morpho colin-morpho deleted the colin@verif/bundler-safety branch January 6, 2025 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
verif Fromal verification with Certora
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants