首页 | 本学科首页   官方微博 | 高级检索  
     

Linux下可执行文件的动态内存检测设计与实现
引用本文:高海昌,冯博琴,卫鹏,何杭军. Linux下可执行文件的动态内存检测设计与实现[J]. 计算机工程, 2007, 33(1): 74-76
作者姓名:高海昌  冯博琴  卫鹏  何杭军
作者单位:西安交通大学电子与信息工程学院,西安,710049;西安交通大学软件学院,西安,710049
基金项目:国家高技术研究发展计划(863计划)
摘    要:针对可执行文件的动态内存管理容易产生的错误,设计并实现了一个Linux 平台下针对C/C++语言的动态内存检测模块DDMEM,使用自定义的ddmemMalloc()函数改写动态分配函数malloc(),实现了一个共享库ddmem.so,可以检测内存泄漏、内存写溢出、释放野指针和内存管理函数的不匹配等问题。给出了函数不匹配的实例检测以验证方法的有效性。并与同类有代表性的检测工具memwatch进行了性能比较,证明该检测模块比memwatch整体更优。

关 键 词:动态内存检测  函数不匹配  内存泄漏  写溢出  野指针
文章编号:1000-3428(2007)01-0074-03
修稿时间:2006-01-29

Design and Implementation of Executable Files Dynamic Memory Test Tool on Linux NC Platform
GAO Haichang,FENG Boqin,WEI Peng,HE Hangjun. Design and Implementation of Executable Files Dynamic Memory Test Tool on Linux NC Platform[J]. Computer Engineering, 2007, 33(1): 74-76
Authors:GAO Haichang  FENG Boqin  WEI Peng  HE Hangjun
Affiliation:(1. School of Electronics and Information Engineering, Xi’an Jiaotong University, Xi’an 710049;
2. School of Software, Xi’an Jiaotong University, Xi’an 710049)
Abstract:A dynamic memory detection module DDMEM for C/C languages on Linux platform is designed to solve the errors of dynamic memory management.The malloc() dynamic distribution function is replaced by customized ddmemMalloc().And a share library DDMEM is achieved.The module can detect memory leak,write overflow,free wild pointer and mismatch using of memory functions of the executable files.Finally,an instance to test functions mismatch and comparing between the DDMEM and a representational test tool Memwatch is carried to validate the effectiveness of method and module.
Keywords:Dynamic memory check   Functions mismatch   Memory leak   Write overflow   Wild pointer
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《计算机工程》浏览原始摘要信息
点击此处可从《计算机工程》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号