Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

advanced: Fix JUMPI followed by stack underflow #474

Merged
merged 1 commit into from
Jun 14, 2022
Merged

Conversation

chfast
Copy link
Member

@chfast chfast commented Jun 14, 2022

Fix stack height check for the basic block following a JUMPI instruction.
Before the stack height was 1 too big because the implementation
incorrectly did not remove the JUMPI condition from the stack.

The bug was introduced in #457.

Fix stack height check for the basic block following a JUMPI instruction.
Before the stack height was 1 too big because the implementation
incorrectly did not remove the JUMPI condition from the stack.

The bug was introduced in #457.
@chfast chfast added the bug Something isn't working label Jun 14, 2022
@chfast chfast requested review from axic, gumb0 and yperbasis June 14, 2022 11:46
@chfast chfast mentioned this pull request Jun 14, 2022
@codecov
Copy link

codecov bot commented Jun 14, 2022

Codecov Report

Merging #474 (1a41241) into master (aea66eb) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #474   +/-   ##
=======================================
  Coverage   99.58%   99.58%           
=======================================
  Files          39       39           
  Lines        4588     4593    +5     
=======================================
+ Hits         4569     4574    +5     
  Misses         19       19           
Flag Coverage Δ
consensus 79.12% <100.00%> (+0.12%) ⬆️
unittests 99.62% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lib/evmone/advanced_instructions.cpp 100.00% <100.00%> (ø)
test/unittests/evm_control_flow_test.cpp 100.00% <100.00%> (ø)

@chfast chfast merged commit ae7e826 into master Jun 14, 2022
@chfast chfast deleted the advanced_fix_jumpi branch June 14, 2022 15:19
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants