关于“Run-Time Check Failure #2 - Stack around the variable 'xxx' was corrupted”问题

问题如下图示:

这是因为变量data相应的内存区被篡改造成的。

去掉篡改语句“*data32s = 10;”,问题即消失。

猜你喜欢

转载自www.cnblogs.com/avin/p/9009734.html