Open eternaleclipse opened 2 years ago
Yes, 64-bit offsets are not supported yet on Capstone.js.
On Unicorn.js, I used the following wrappers to get arbitrary precision on the API though. It would be a good idea to apply it here: https://github.com/AlexAltea/unicorn.js/blob/master/src/libelf-integers.js
I'm thinking about solving this using BigInt.
I'll PR if I get any progress on this 🙂
Sure, that makes sense. I didn't know that BigInt landed on major browsers, thanks!
Expected behavior
On recent Python capstone (4.0.2):
Output:
I would expect the same on JavaScript.
Problem
Using
x86-capstone.js
from last release (capstone.js v3.0.5-RC1 - from 2017...):Output:
I assume this is probably due to outdated build not supporting 64-bit offsets.