Replies: 2 comments 7 replies
-
ok, seems that is a common problem that using float as an argument of variadic function in x64 creates a crash based on how registers and stack is being used. I don't fully understand the problem though, but I'll change the printf function to accept only one argument. |
Beta Was this translation helpful? Give feedback.
-
This looks like the float issues I saw earlier. If you disassemble your app look for the instruction at address Easiest way to do this is get ImHex. Scroll down to address |
Beta Was this translation helpful? Give feedback.
-
I have this weird behavior when I try to use a variadic function (like printf) and a float. In an unexpected turn of events, the program only crash when using a float, but it works if I use an int.
this is the code I'm working on:
The following code works
the following code fails
What I'm missing? I think the stdarg.h is creating a stack corruption, but I don't have evidence.
Beta Was this translation helpful? Give feedback.
All reactions