This repository was archived by the owner on Oct 28, 2021. It is now read-only.
interpreter: Fix call depth handling in CALLs#5662
Merged
Conversation
34b729b to
95ab8e2
Compare
Codecov Report
@@ Coverage Diff @@
## master #5662 +/- ##
==========================================
- Coverage 62.79% 62.78% -0.02%
==========================================
Files 349 349
Lines 29721 29723 +2
Branches 3346 3346
==========================================
- Hits 18663 18661 -2
- Misses 9845 9848 +3
- Partials 1213 1214 +1 |
Member
|
I'm a bit confused about this Line 128 in d169557 EvmCHost::call delegates to ExtVM::call in the end, and there depth is incremented. Wouldn't it be then incremented twice with your fix?
|
Member
Author
|
|
Member
|
Ok, I think I see. I guess it was working fine, because |
gumb0
approved these changes
Jul 10, 2019
Member
Author
Exactly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes an issue in aleth-interpreter where for call the depth is not increased.
The additional assert now checks if the depth is the same as in ExtVM (will cause a lot of state test failures if the fix is not applied).