Page 1 - Showing 8 of 46 posts
View all posts by years →
- Debug 记录:一个缺失的“\0”和一个意外的“%”引发的挂死
记录在实习过程中遇到的一个由数据源头污染、内存越界读取以及格式化字符串漏洞三者巧合叠加引发的教科书级 Crash
8 min read - Effective C++: 避免遮掩继承而来的名称
Avoid hiding inherited names
6 min read - Effective C++: 确定你的 public 继承塑模出 is-a 关系
Make sure public inheritance models 'is-a'
6 min read - Effective C++: 成对使用 new 和 delete 时要采取相同形式
Use the same form in corresponding uses of new and delete
5 min read - Effective C++: 以独立语句将 newed 对象置入智能指针
Store newed objects in smart pointers in standalone statements
6 min read - Effective C++: 在资源管理类中提供对原始资源的访问
Provide access to raw resources in resource-managing classes
5 min read - Effective C++: 在资源管理类中小心 copying 行为
Think carefully about copying behavior in resource-managing classes
6 min read - Effective C++: 以对象管理资源
Using objects to manage resources
3 min read