Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using jsdec with Cutter always fails to parse JSON output of it: #30

Open
2 of 10 tasks
XVilka opened this issue Feb 19, 2023 · 6 comments
Open
2 of 10 tasks

Using jsdec with Cutter always fails to parse JSON output of it: #30

XVilka opened this issue Feb 19, 2023 · 6 comments

Comments

@XVilka
Copy link
Member

XVilka commented Feb 19, 2023

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

Component

  • core
  • arm
  • avr
  • m68k
  • mips
  • ppc
  • sparc
  • v850
  • wasm
  • x86-64

Reproduce via JSON (pddi)

<pddi or pdd --issue JSON>

jsdec_30_pddi.txt.zip

Failed to parse JSON
TypeError: cannot read property 'type' of undefined
at [anon] (duk_hobject_props.c:2549) internal
at [anon] (libdec/annotation.js:140)
at [anon] (libdec/printer.js:141) preventsyield
at forEach () native strict preventsyield
at [anon] (libdec/printer.js:144)
at jsdec_main (jsdec-duk.js:112)
at eval (eval:1) preventsyield

Failed to parse JSON
TypeError: cannot read property 'type' of undefined
at [anon] (duk_hobject_props.c:2549) internal
at [anon] (libdec/annotation.js:140)
at [anon] (libdec/printer.js:141) preventsyield
at forEach () native strict preventsyield
at [anon] (libdec/printer.js:144)
at jsdec_main (jsdec-duk.js:112)
at eval (eval:1) preventsyield
@chucklesb
Copy link

I have a similar issue with several of the win32 binaries in the IOLI crackmes. pddi output: https://pastebin.com/cqP6Y5uv

The IOLI crackmes are built against MinGW. I found that I can decompile the linux binaries without issue.

@wargio

This comment was marked as resolved.

@wargio
Copy link
Member

wargio commented Nov 22, 2023

I have a similar issue with several of the win32 binaries in the IOLI crackmes. pddi output: https://pastebin.com/cqP6Y5uv

The IOLI crackmes are built against MinGW. I found that I can decompile the linux binaries without issue.

can you share the bin? i can't repro

@chucklesb
Copy link

https://github.com/rizinorg/book/raw/master/src/crackmes/ioli/IOLI-crackme.tar.gz

Cutter 2.3.2 running on Windows 11 Pro. Open bin-win32/crackme0x00.exe in Cutter with analysis (aaa) enabled. Open the main function in the decompiler view.

Note, Cutter 2.0.5 seems to work as expected.

@chucklesb
Copy link

@wargio: Were you able to reproduce the issue given that information?

@wargio
Copy link
Member

wargio commented Dec 1, 2023

yes, i was able to reproduce it, seems that something changed on rizin side and is returning an empty value. i'm not sure if it is worth spending time understanding what is wrong or just merging dev into master.

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

No branches or pull requests

3 participants