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

Broken printing of strings containing quotes #42

Open
1 of 10 tasks
jtojnar opened this issue Nov 5, 2023 · 0 comments
Open
1 of 10 tasks

Broken printing of strings containing quotes #42

jtojnar opened this issue Nov 5, 2023 · 0 comments

Comments

@jtojnar
Copy link
Contributor

jtojnar commented Nov 5, 2023

Describe the bug

When I try to decompile the same program as in #39, I get:

_fprintf (eax, "%s",%f,%f,%f,%f,%f\r\n");

The string is actually:

"%s",%f,%f,%f,%f,%f

This is how Ghidra decompiles it:

_fprintf(iStack_80, "\"%s\",%f,%f,%f,%f,%f\r\n", *(undefined4 *)(iStack_7c * 0x30 + 0x403000), 
         *(undefined4 *)(iStack_7c * 0x30 + 0x403008), 
         *(undefined4 *)(iStack_7c * 0x30 + 0x40300c), *(undefined4 *)(iVar4 + 0x403000), 
         *(undefined4 *)(iVar4 + 0x403004), 
         *(undefined8 *)((iStack_7c * 3 + 1) * 0x10 + 0x403008), 
         *(undefined8 *)(iStack_7c * 0x30 + 0x403020), 
         *(undefined8 *)(iStack_7c * 0x30 + 0x403028));

Component

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

Using jsdec 5412ea4

Reproduce via JSON (pddi)

jsdec-string.json

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

1 participant