摘要: 内存的动态内存使用问题是C/C++程序员永远面临的问题。针对内存管理和使用的各类错误,设计并实现一个基于Linux的动态内存检测模块,可以对源码程序检测出内存泄漏、内存写溢出、“野指针”操作和内存管理函数的不匹配等问题。实验结果表明,系统具有效率高、易用性好的特点。
关键词:
动态内存,
内存泄漏,
写溢出,
野指针,
不匹配
Abstract: The dynamic memory management usage is a forever problem to C/C++ programmers.For all sorts of errors of dynamic memory usage,a dynamic memory detection module based on Linux is designed and implemented,which can detect memory leak,writing overflow,manipulation of wild pointer and mismatching usage of memory functions.Experiment results present that this tool has a high effectiveness and is easy to be used.
中图分类号:
何杭军,朱利,李青山,谢海江. 基于Linux的动态内存检测工具的设计与实现[J]. , 2005, 31(21): 79-81.
HE Hangjun,ZHU Li,LI Qingshan,XIE Haijiang. Design and Realization of Dynamic Memory Detection Tool Based on Linux[J]. , 2005, 31(21): 79-81.