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

Problems with type inference around printf #1341

Open
uxmal opened this issue Apr 17, 2024 · 0 comments
Open

Problems with type inference around printf #1341

uxmal opened this issue Apr 17, 2024 · 0 comments
Assignees
Labels
bug This issue describes a defect in Reko

Comments

@uxmal
Copy link
Owner

uxmal commented Apr 17, 2024

(See #1337 opened by @yangzao for the binary in question, program 4)
Original code:

char *str = "global string";
printf("%s", str);

Decompile code:

word64 str = 0x006007A8;
printf("%s", *str);

str is a char * in the original code. But in the decompiled code, it is defined as a word64 (I assume it's int64_t). And printf tries to access it with deferencing.

@uxmal uxmal self-assigned this Apr 17, 2024
@uxmal uxmal added the bug This issue describes a defect in Reko label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes a defect in Reko
Projects
None yet
Development

No branches or pull requests

1 participant