anvill icon indicating copy to clipboard operation
anvill copied to clipboard

Handle varargs functions, specifically printf and scanf and friends

Open artemdinaburg opened this issue 4 years ago • 0 comments

Right now varargs functions are detected as varargs, but we only emit the formal but not variable parameters.

As an example, we see:

unsigned int printf(unsigned char *arg0, ...);
...
unsigned int val6 = printf(data_4007c1);

Lets handle varargs functions better. For now, it is fine if it just hits *printf and *scanf and handles static strings. This may be some kind of specific pass or set of heuristics, as long as it is identified as such and not comingled with other code.

artemdinaburg avatar Jan 21 '21 20:01 artemdinaburg