Stack corruption in C++

前端 未结 6 920
囚心锁ツ
囚心锁ツ 2020-12-04 22:44

In C++, in which way the stack may get corrupted. One way I guess is to overwriting the stack variables by accessing an array beyond its boundaries. Is there any other way t

6条回答
  •  执念已碎
    2020-12-04 23:20

    Throwing an exception inside a destructor is a good candidate. It would mess up the stack unwinding.

提交回复
热议问题