Closed
Description
Describe the bug
In quite some cases the decompiler does not identify parameters to vararg functions such as printf/sprintf correct.y
To Reproduce
Steps to reproduce the behavior:
- Get a wannacry sample, for example https://www.virustotal.com/gui/file/24d004a104d4d54034dbcffc2a4b19a11f39008a575aa614ea04703480b1022c
- Go to function
FUN_00407ce0
- Scroll down to the sprintf calls at offset
407e18
- See that three arguments are pushed to
sprintf
but only two are identified.
Expected behavior
The call should look like
sprintf(&local_104,s_C:\%s\qeriuwjhrf_00431344,"WINDOWS")
Environment (please complete the following information):
- OS: macOS 10.14.3
- Java Version: 11.0
- Ghidra Version: 9.0