Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Bug]: BacktrackLimitExceeded #30

Closed
2 tasks done
losh256 opened this issue Dec 24, 2022 · 3 comments
Closed
2 tasks done

[Bug]: BacktrackLimitExceeded #30

losh256 opened this issue Dec 24, 2022 · 3 comments
Assignees

Comments

@losh256
Copy link

losh256 commented Dec 24, 2022

Component

Heimdall CLI

Version

0.2.0

Please check the following

  • This is not a duplicate issue
  • I have checked the wiki and tried troubleshooting the issue

Operating System

Linux

Describe the issue you are facing

on mainnet:

heimdall decompile 0x66AB180c5c9F01b2B78C29a201C7efbD9192ECe5 --include-sol

produces following error:

fatal: thread 'main' encountered a fatal error: 'panicked at 'called `Result::unwrap()` on an `Err` value: BacktrackLimitExceeded', src/decompile/util.rs:377:57'!
@losh256 losh256 added the bug label Dec 24, 2022
@Jon-Becker
Copy link
Owner

This appears to be an issue with the loop breakout detection.

I'll make a patch sometime soon. Thank you for the report!

@Jon-Becker Jon-Becker self-assigned this Dec 24, 2022
@Jon-Becker
Copy link
Owner

I've identified the issue and will make a fix in 0.2.1.

This will also include a fix for the fallback function, which appears to not be working either

@Jon-Becker
Copy link
Owner

https://github.com/Jon-Becker/heimdall-rs/releases/tag/2.0.1

This is a patch for the moment. It'll truncate the branches for each function to 1000, so you should be able to decompile each function at least partially. This will be properly fixed soon.

I am also looking into this contract not outputting any code for the withdrawAllTokens function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants