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

Fix bug where compilation of contracts without public functions would result in malformed YUL #248

Merged
merged 2 commits into from
Feb 15, 2021

Conversation

cburgdorf
Copy link
Collaborator

What was wrong?

As identified by the fuzzer in #219 contracts without any public functions compile to faulty YUL.

How was it fixed?

Compile to pop(0) instead of switch (..) when there are no public functions.

To-Do

  • OPTIONAL: Update Spec if applicable
  • Add entry to the release notes (may forgo for trivial changes)

@@ -0,0 +1,168 @@
object \"Empty\" {
Copy link
Member

Choose a reason for hiding this comment

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

🗑️

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oops

@codecov-io
Copy link

Codecov Report

Merging #248 (0ed8cfc) into master (9c49805) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #248   +/-   ##
=======================================
  Coverage   93.91%   93.91%           
=======================================
  Files          54       54           
  Lines        3744     3746    +2     
=======================================
+ Hits         3516     3518    +2     
  Misses        228      228           
Impacted Files Coverage Δ
compiler/src/yul/runtime/abi_dispatcher.rs 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c49805...f840fff. Read the comment docs.

@cburgdorf cburgdorf merged commit df20910 into ethereum:master Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants