keystone-engine / keystone

Keystone assembler framework: Core (Arm, Arm64, Hexagon, Mips, PowerPC, Sparc, SystemZ & X86) + bindings
http://www.keystone-engine.org
GNU General Public License v2.0
2.31k stars 459 forks source link

Incorrect symbol resolve with CALL [ptr] #271

Open wsxarcher opened 7 years ago

wsxarcher commented 7 years ago

Compiling

call [symbol]
ff1513000000

With sym resolved as 0x41b000 behave differently from compiling

call [0x41b000]
ff1500b04100

EDIT: Added pull request #272 for regression test

aquynh commented 7 years ago

yes this is a known issue, see https://github.com/keystone-engine/keystone/issues/244. will try to find some time to fix this asap, thanks.

wsxarcher commented 7 years ago

The problem was the wrong usage of ctypes pointer. No bug is present in the core.