Skip to content

Problems with type inference around printf #1341

Description

@uxmal

(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.

Metadata

Metadata

Assignees

Labels

bugThis issue describes a defect in Reko

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions