明明存在了缓冲区溢出,却能正常运行不报错,并且输出结果也是完整的
# include <stdio.h>
# include <string.h>
char name[] = "abcdefghijklmnopqrstuvwxyz";
int main() {
char buffer[8];
strcpy(buffer,name) ;
return 0;
}
明明存在了缓冲区溢出,却能正常运行不报错,并且输出结果也是完整的
# include <stdio.h>
# include <string.h>
char name[] = "abcdefghijklmnopqrstuvwxyz";
int main() {
char buffer[8];
strcpy(buffer,name) ;
return 0;
}