Content deleted Content added
→Free fire ma I'd hack: new section |
m Reverted edit by 2409:40C1:31D3:5C80:8000:0:0:0 (talk) to last version by Qwerfjkl (bot) |
||
Line 32:
In partikular, you cannot cause trouble by passing a wrong number of arguments (what would be devastating in BASIC or Pascal). Interestingly, the Windows API, what normally uses Pascal-calls uses C-calls for Vararg funktions, for exaclty that reason.
Most printf related bugs print mearly garbage. By passing many %X or %s you get a dump of the stack or strings, that is only rarely a hazard. You might get acess to sensitive data, but this requires a lot of knowledge about the programm, and apropriate data structures. The most damaging possible is, to overwrite the code at the return adress with %n, what crashes the programm, but is probably insuficient to jump to malware. --[[Special:Contributions/79.200.87.213|79.200.87.213]] ([[User talk:79.200.87.213|talk]]) 23:48, 6 February 2015 (UTC)
|