wargio / r2dec-js

radare2 plugin - converts asm to pseudo-C code.
508 stars 48 forks source link

arm64 crash #311

Closed trufae closed 1 month ago

trufae commented 1 month ago

Describe the bug Before opening a bug report run r2pm install r2dec and verify it crashes also on the latest version. A clear and concise description of what the bug is (if known).

Component

Reproduce via JSON (pddi)

b.json.zip

$ r2 -s 0x10036485c -c 'af;pdd' Signal
Exception: bigint are forbidden in JSON.stringify (TypeError)
    at stringify (native)
    at default (../js/libdec/core/classes.js:9)
    at _session (../js/libdec/core.js:152)
    at decompile_offset (../js/r2dec-plugin.js:30)
    at main (../js/r2dec-plugin.js:88)
    at <anonymous> (../js/r2dec-plugin.js:109)

r2dec has crashed (info: Signal @ 0x10036482c).
Please report the bug at https://github.com/wargio/r2dec-js/issues
Use the command 'pddi' to generate the needed data for the issue.
[0x10036485c]>

I've observed several issues while trying to investigate the bug:

trufae commented 1 month ago

can't repro now