|
1
4
|
|
|
2
7
我认为你的sscanf例子是错误的。这样使用时,它仍然会溢出。
Take a look at this IBM dev article about protecting against buffer overflows.
|
|
3
4
一个开始研究这个的好地方是 David Wheeler's excellent secure coding site . Secure Programming for Linux and Unix HOWTO “是定期更新的优秀资源。 你可能还想看看他出色的静态分析仪 FlawFinder
我个人使用David的资源已经好几年了,我发现它们非常优秀。 |
|
5
1
Yannick Moy在博士和博士期间为C开发了Hoare/Floyd最弱的前提系统 applied it to the CERT managed strings library . 他发现了一些虫子(见他的回忆录第197页)。好消息是图书馆现在对他的工作更安全了。 |
|
|
7
0
不要使用
如果您决定更改
Check the return value of
|