Skip to content

Decoder: fix illegal LEA encoding - #5820

Open
javelina-pkwy wants to merge 2 commits into
FEX-Emu:mainfrom
javelina-pkwy:lea-reg-reg
Open

Decoder: fix illegal LEA encoding#5820
javelina-pkwy wants to merge 2 commits into
FEX-Emu:mainfrom
javelina-pkwy:lea-reg-reg

Conversation

@javelina-pkwy

Copy link
Copy Markdown

Fixes subtle decoder bug allowing execution of illegal register-to-register variants of LEA.

For example, before this fix these bytes:
0x66, 0x8D, 0xC0 (ie. LEA ax, ax)

Would be translated as

uxth w20, w4
bfxil x4, x20, #0, #16

We now treat all of these encodings as illegal.

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