谁能用C语言帮我编写一段缓冲区溢出的程序?谢谢
来源:百度知道 编辑:UC知道 时间:2024/06/10 23:29:58
谢谢
OK
#include <stdio.h>
#include <string>
int main()
{
char a[5];
strcpy(a,"12345678911111");
return 0;
}//你运行看下 程序会出现错误 后面的数据 都覆盖了 这就缓冲区溢出
UC知道是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度知道 编辑:UC知道 时间:2024/06/10 23:29:58
OK
#include <stdio.h>
#include <string>
int main()
{
char a[5];
strcpy(a,"12345678911111");
return 0;
}//你运行看下 程序会出现错误 后面的数据 都覆盖了 这就缓冲区溢出