Skip to content

Conversation

@trufae
Copy link
Contributor

@trufae trufae commented Apr 30, 2025

i have introduced some breaking changes in r2 structs and json objects. in this case offset is now named "addr" for function and basic blocks. im not sure if this is the most elegant way to handle that in r2dec, but that patch works with latest r2

@trufae
Copy link
Contributor Author

trufae commented May 11, 2025

ping

var isfast = !r2pipe.bool('e r2dec.slow');
this.arch = r2_arch();
this.bits = r2pipe.int('e asm.bits', 32);
function aflj() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Define this outside

}
return {
offset: x.offset,
offset: x.offset?? x.addr,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't better to invert?

offset: x.offset?? x.addr,
name: x.name,
calltype: x.calltype,
calltype: x.calltype?? x.callconv,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@wargio
Copy link
Owner

wargio commented May 11, 2025

Looks like I never sent the comments. Sorry it's the stupid mobile github app.

@trufae
Copy link
Contributor Author

trufae commented May 11, 2025

done.

@trufae trufae mentioned this pull request May 11, 2025
10 tasks
@wargio wargio merged commit 3689233 into wargio:master May 12, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants