You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vyper Version (output of vyper --version OR linkable commit hash vyperlang/vyper@): b43ffac
Issue Description
_stack_peephole_opts() tries to perform 5 different optimizations at
each index i of the assembly using a while loop. However, the last two
optimizations, when performed do not continue the loop, which means
that:
i is incremented by 1, leading to skipping the next instruction
and potentially missing an optimization.
If both optimizations are performed for a given i, it might be
that the second one tries accessing an index that is out of range
given that the first one removed the 2 last elements of the array
and the check for the index is not performed in between the two
optimizations.
The text was updated successfully, but these errors were encountered:
Version Information
vyper --version
OR linkable commit hash vyperlang/vyper@): b43ffacIssue Description
_stack_peephole_opts()
tries to perform 5 different optimizations ateach index
i
of the assembly using a while loop. However, the last twooptimizations, when performed do not
continue
the loop, which meansthat:
i
is incremented by 1, leading to skipping the next instructionand potentially missing an optimization.
i
, it might bethat the second one tries accessing an index that is out of range
given that the first one removed the 2 last elements of the array
and the check for the index is not performed in between the two
optimizations.
The text was updated successfully, but these errors were encountered: