Comments (5)
It is very unlikely that this will be fixed due to #2089. In the next
branch the instruction is disassembled correctly. Also it has many more features and is more precise:
./cstool -d arm "\xd0\x20\xc5\xe1"
0 d0 20 c5 e1 ldrd r2, r3, [r5]
ID: 112 (ldrd)
op_count: 3
operands[0].type: REG = r2
operands[0].access: WRITE
operands[1].type: REG = r3
operands[1].access: WRITE
operands[2].type: MEM
operands[2].mem.base: REG = r5
operands[2].mem.scale: 0
operands[2].access: READ
Registers read: r5
Registers modified: r2 r3
Groups: IsARM HasV5TE
If you rely on a release there should be a pre-release soon. cc @kabeor for pre-release info
from capstone.
I built and installed the next
branch but that does not fix the issue. The cstool
shows the same correct output as you have shown, but the python binding still gives the wrong result. I also built the version 5.0.1
and checked cstool
output. It identifies all three operands, but with less information (which is fine for my use case right now).
I believe the issue is with the python bindings and not in the library itself.
I will try to debug this further myself. If you can point me to places where I can start, that would be really helpful!
from capstone.
Weird. Make sure that you have not v4
installed and clean the complete capstone dir from build files. Or clone it freshly. It might be, that the Python bindings use the incorrect library.
from capstone.
Related Issues (20)
- ARM Thumb instruction SUB may decode wrong in ADR situation HOT 4
- Unable to build with latest `next` branch on darwin/aarch64 HOT 8
- ARM Thumb instruction MRS cannot be decoded HOT 2
- Python bindings failing to disassemble single instruction HOT 2
- BPF bytecode is not disassembled completely HOT 2
- the result of regs_access() for lsr is not correct? HOT 4
- disassem error
- Capstone can't be built on 3.12 due to distutils removal HOT 8
- Drop python2
- Has v5.0.x Dropped VS2010 Support? HOT 2
- CS_ARCH_ARM64 missing operands HOT 1
- [cstool] Print encoding info of instruction
- [ARM] instr. with pc writes are not part of jump group
- aarch64: incorrect register in regs_access() for bl instruction HOT 7
- 5.0.1: pytest is failing and deprecation warnings HOT 2
- [PPC] Implement VLE support
- [x86] pseudo opcode adjustment for vcmpnlesd is wrong to vcompresspd
- Regarding the version issue of Capstone. HOT 3
- [X86] Incorrect explicit read/modified registers for vcmpunordss and others
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capstone.