C++ STL中vector::push_back浅拷贝导致的double free

  • A+
所属分类:菜鸟笔记

double free发生的原理:

https://blog.csdn.net/swartz_lubel/article/details/79493020

使用拷贝构造去解决:

https://www.cnblogs.com/alantu2018/p/8459250.html

eqqie

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: