Skip to content

Decompile script bytecode will panic. #3

Description

@kynehc

./revela -s -b third_party/move/tools/revela/tests/bytecode/set_vals.mv

This cause the following results:

thread 'main' panicked at third_party/move/tools/revela/src/decompiler/bin_to_compiler_translator.rs:467:10:
invalid bounds in module: PartialVMError { major_status: INDEX_OUT_OF_BOUNDS, sub_status: None, message: Some("Index 2 out of bounds for 2 while indexing address identifier"), exec_state: None, indices: [(AddressIdentifier, 2)], offsets: [] }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I also tested other script bytecodes and also got panic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions