Jon-Becker / heimdall-rs

Heimdall is an advanced EVM smart contract toolkit specializing in bytecode analysis and extracting information from unverified contracts.
http://heimdall.rs
MIT License
1.19k stars 125 forks source link

bug: index out of bounds: the len is 1 but the index is 1 #487

Closed fala13 closed 2 months ago

fala13 commented 2 months ago

Component

Heimdall (Core), Heimdall (CLI)

Have you ensured that you are up to date?

What version of Heimdall are you on?

90e6622f0724af40ba82c26c3d2a40d585373beb

Operating System

Linux

Describe the bug

Current HEAD 90e6622f0724af40ba82c26c3d2a40d585373beb seems to run very well, the only issue I noticed is that ./target/release/heimdall decompile 0x4018693062eeaa805ac1b1948271abdd9125984f --rpc-url https://base.llamarpc.com produces

2024-08-28T18:34:02.414867Z  WARN error executing branch: Uint<256> value is too large for usize

Location:
    crates/vm/src/core/vm.rs:979:35
thread 'main' panicked at crates/decompile/src/core/out/abi.rs:58:69:
index out of bounds: the len is 1 but the index is 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace