Comments (5)
can you check the output from r2? because those args (arg1, arg2) comes from r2
from r2dec-js.
Output of "afv"
var int64_t var_8h @ rbp-0x8
var int64_t var_4h @ rbp-0x4
arg int64_t arg2 @ rsi
arg int64_t arg1 @ rdi
from r2dec-js.
i can confirm that the problem is that those 2 args are inverted by r2 in the json structure.
from r2dec-js.
fixed in d986d45
from r2dec-js.
I don't think this is a correct fix. the arguments must be sorted depending on the calling convention associated with the function. not sorted by name or by register index. Right now the json output doesn't order them in any specific way because it's assume that's part of the frontend who understand the calling convention. but I can fix that in the r2 side so we can ensure the listing honours the calling convention which is probably the expected output.
from r2dec-js.
Related Issues (20)
- Stand-alone use? HOT 1
- M1 Macbook(2020) r2pm install r2dec can't run HOT 3
- pdd crash on ARM HOT 1
- pddl do not analyse all func HOT 1
- Missing instructions on x64
- README.md RISC-V
- pdd command crashes (always)
- Cut a new release HOT 4
- radare2: symbol lookup error: /root/.local/share/radare2/plugins/core_pdd.so: undefined symbol: r_cons_strcat HOT 9
- esm and qjs rewrite HOT 6
- r2dec seems broken as of 9646f560d169ab684ff67f2fbf6f8b3c61588bb4 HOT 14
- Missing instructions for ARM64 HOT 2
- CC warning in pddi
- Include r2 and r2dec version information inside the pddi output HOT 1
- Remove duktape references in the DEVELOPERS doc HOT 2
- Debian package HOT 1
- Looks like meson on Windows expects an absolute path HOT 5
- Tag a new release for 5.9 and fix readme HOT 10
- Add support for STM8 HOT 1
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 r2dec-js.