Dynamic Memory Testing Based on Source Code Instrumentation on Linux Platform

GAO Hai-chang,FENG Bo-qin,HE Hang-jun,ZHU Li
DOI: https://doi.org/10.3969/j.issn.1000-1220.2006.09.011
2006-01-01
Abstract:Usage of pointer in C/C++ language makes program source code flexible and convenient,but the memory usage errors(memory leak,write overflow,wild pointer and so on.) occur in the process is very difficult to analyze and eliminate.Aimed at errors of dynamic memory management,a dynamic memory detection method based on source file extraction and source code instrumentation on Linux Platform was developed,and a dynamic memory detection module was designed.The module can detect memory leak,write overflow,free wild pointer and mismatch using of memory functions to source code.Finally,an instance to test write overflow was carried to validate the effectiveness of our method and module.
What problem does this paper attempt to address?