unicorn-engine / unicorn

Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, S390x, TriCore, X86)
http://www.unicorn-engine.org
GNU General Public License v2.0
7.34k stars 1.31k forks source link

xsave [rsp+0x40] error #1814

Closed pwnhacker0x18 closed 1 year ago

pwnhacker0x18 commented 1 year ago

Hello! I use unicorn from git clone in my C code. I encountered an unknown error - unicorn cannot execute xsave, and in the code hook this instruction is of an abnormal size. before exec xsave: image image image after exec xsave: image image image

I use context segments with elf. All segments and registers are identical. Here are screenshots of the original elf. before xsave: image image after xsave: image image

wtdcode commented 1 year ago

It's better if you could give a reproduction.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.