Skip to content

Assembly: check stack layout before and after jumps to labels #1825

@pirapira

Description

@pirapira

Currently, the assembly analyzer is not aware of the control flow from jumps to labels.

This issue keeps track of

  • disabling labels first
  • implement checks that control-flow sources and destinations have named stack elements at the same positions
  • enabling labels

Since the Solidity compiler has enough information about the jump sources and jump destinations, the labels and jumps can be annotated with enough information that witnesses the stack layout of the sources and destinations are compatible. The assembly analyzer needs to check the annotations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions