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

v2 "Index was outside the bounds of the array." exception #51

Open
ChloeDoesThings opened this issue Apr 5, 2024 · 2 comments
Open

Comments

@ChloeDoesThings
Copy link
Contributor

Hello, I wanted to report a bug on v2 where you guys can hopefully fix it. Every time I try to decompile certain bytecode files, it just gives me a bunch of "Index was outside the bounds of the array." exceptions and never seems to finish.

It comes from the LiftBasicBlock function and more specifically this line of code:
var instruction = Instructions[pc];

The error is caused by the pc value being less than 0 for some weird reason. All I did to my v2 fork is update the opcodes table.

Maybe you guys can fix this, thanks.

image

@ChloeDoesThings
Copy link
Contributor Author

Bytecode if you need it:

input.txt

@ChloeDoesThings
Copy link
Contributor Author

Update: It is caused by instructions (like JUMPIFNOT) having a D value of a negative number

image

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

1 participant