Skip to content

Fix stack adjustment for x86 pop r16#8050

Open
haileys wants to merge 1 commit intoVector35:devfrom
haileys:x86-pop-stack-adjust
Open

Fix stack adjustment for x86 pop r16#8050
haileys wants to merge 1 commit intoVector35:devfrom
haileys:x86-pop-stack-adjust

Conversation

@haileys
Copy link
Copy Markdown

@haileys haileys commented Apr 1, 2026

Related to #4028

pop r16 is lifted incorrectly and adjusts the stack by the wrong size:
image

This PR changes the lifting to always pop the memory operand size and insert a LLIL_LOW_PART if the destination register size is different:

image

Always pops operand size and then truncates to store in register
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.

1 participant