warning: this program uses gets(), which is unsafe.
来源:互联网 发布:2017好听的网络红歌 编辑:程序博客网 时间:2024/05/03 14:58
不安全啊不安全~
1、没有边界检查 深入了解计算机的人可以利用gets不检查边界 用输入实现攻击
所以不安全
gets写的程序 都被叫做 玩具程序了
2、使用gets()容易溢出。。。也就是输入的字符串大于数组的容量时字符串就溢出到其他存储空间了。
3、gets()函数接收的输入大小不受限制,于是有人利用这个,通过输入覆盖操作系统所占的内存,制造了蠕虫病毒。如果是重要的程序,最好谨慎使用这个函数。
- warning: this program uses gets(), which is unsafe.
- warning:this program uses gets(), which is unsafe
- this program uses gets(), which is unsafe.
- this program uses gets(), which is unsafe.
- c中使用gets() 提示warning: this program uses gets(), which is unsafe.
- C语言(Bug) warning: this program uses gets(), which is unsafe.
- warning C4996: 'gets': This function or variable may be unsafe. Consider using gets_s instead.
- 警告 1 warning C4996: 'gets': This function or variable may be unsafe.类似情况
- warning: its scope is only this definition or declaration, which is not what you want
- This is C++ program
- compile c++ program which uses stl in ndk
- This is my first program
- This is a C++ program
- mysql 警告提示Unsafe statement .The statement is unsafe because it uses a LIMIT clause
- warning C4996: 'strcpy': This function or variable may be unsafe.
- warning C4996: 'sprintf': This function or variable may be unsafe.
- warning C4996: 'fopen': This function or variable may be unsafe
- What causes javac to issue the “uses unchecked or unsafe operations” warning
- 处理 JavaScript 异常的一个想法
- android 为图片添加倒影
- MySQL主从复制与读写分离
- .NET 4.5(C#):TypeInfo类型和反射中的成员枚举
- 把Nginx加为系统服务(service nginx start/stop/restart)
- warning: this program uses gets(), which is unsafe.
- 搭建git服务器做源代码管理
- preg_match、preg_match_all 长度限制
- Discuz!X开发者模式开启
- 搭建ubuntu上的git服务器,并用Mac下用Xcode连接进行开发
- DDE
- AIX下装unzip
- linux设备和驱动加载的先后顺序
- 源码编译安装 MySQL 5.5.x 实践