stack around the variable "xx" was corrupted 报错 李昱棋 2020年 03月20日 现象:在使用Visual studio 2015调试过程中,退出程序时出现警告:stack around the variable "xx" was corrupted。 原因:其实就是数组越界问题,在给数组赋值时越界,由于是自动变量分配在Stack,会警告某数组周围内存被损坏 解决:限定赋值范围,防止越界