| ▲ | josefx 5 hours ago | |||||||||||||
Was the thought process: "Anything involving C string handling is fundamentally security hostile, lets fix it by breaking %n!" | ||||||||||||||
| ▲ | tom_ 2 hours ago | parent | next [-] | |||||||||||||
It is the only one that actually writes to memory. It's occasionally convenient, but it's also largely unnecessary: the caller can typically make multiple calls to printf, for example, noting the return value for each one. Or use strlen and fputs. And so on. The C11 printf_s functions don't support it at all, so it's clearly already on the naughty list even from the standard's perspective. | ||||||||||||||
| ▲ | trashb 3 hours ago | parent | prev [-] | |||||||||||||
Can you elaborate on the statement "Anything involving C string handling is fundamentally security hostile"? | ||||||||||||||
| ||||||||||||||