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

Fix call stack pops and push #5

Merged
merged 1 commit into from Aug 31, 2021

Conversation

cmorin6
Copy link

@cmorin6 cmorin6 commented Aug 31, 2021

There was an issue in the injected pcode for calls:
SP was save before parameter pops and restored before pushing the result value. Parameters where never "consumed" from the stack which was simply growing with each return.

I moved the SP backup to after parameter pops to correct this behavior. This fixed the stack alignment issue and in_SPstatements in the decompilation.

@garrettgu10
Copy link
Owner

Awesome. Thanks for helping track this down, I've been having issues with this. 😊

@garrettgu10 garrettgu10 merged commit f295113 into garrettgu10:br_table Aug 31, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants