The gcc compiler option -Wformat-security will warn you of some cases where the code may be vulnerable to format string attacks.
gcc 编译器选项 -Wformat-security 可以警告您代码中可能受到格式化字符串攻击的地方。
So far, although many approaches have been proposed to solve buffer overflows and format string attacks, unfortunately few of them can prevent all possible attacks.
目前针对缓冲区溢出和格式化字符串漏洞攻击已经提出了很多种解决方法。
应用推荐