谁能用C语言帮我编写一段缓冲区溢出的程序?谢谢

来源:百度知道 编辑:UC知道 时间:2024/06/10 23:29:58
谢谢

OK

#include <stdio.h>
#include <string>
int main()
{
char a[5];

strcpy(a,"12345678911111");

return 0;
}//你运行看下 程序会出现错误 后面的数据 都覆盖了 这就缓冲区溢出