Semantics-based memory leak detection for C programs

Zhiqiang Liu, Bo Xu, Dong Liang, Chang Liu, Zejun Jiang, Chenglie Du

科研成果: 书/报告/会议事项章节会议稿件同行评审

2 引用 (Scopus)

摘要

Memory leak detection for C programs is a significant while difficult research field. Based on executable formal semantics of C programming language, a new method is proposed in this paper for memory leak detection. By extending and modifying state Configuration and rules of memory manipulation and pointer manipulation in semantics, this method can employ the powerful expression and executive capacity of rewriting logic to describe both behaviors of memory operation such as malloc, free, pointer and unit of scope, and memory leak pattern of C programs in executable semantics. Because the modified state Configuration and rules are executable, the memory leak flaws can be matched and detected automatically by execution. Three typical memory leak flaws, namely unreleased allocated-memory, pointer reassigning and inconsistency between allocated space and released space, are tested with some code segments containing them to verify the method. The results and testing time show that the semantics-based method can detect memory leak flaws in C programs effectively.

源语言英语
主期刊名2015 12th International Conference on Fuzzy Systems and Knowledge Discovery, FSKD 2015
编辑Zhuo Tang, Jiayi Du, Shu Yin, Renfa Li, Ligang He
出版商Institute of Electrical and Electronics Engineers Inc.
2283-2287
页数5
ISBN(电子版)9781467376822
DOI
出版状态已出版 - 13 1月 2016
活动12th International Conference on Fuzzy Systems and Knowledge Discovery, FSKD 2015 - Zhangjiajie, 中国
期限: 15 8月 201517 8月 2015

出版系列

姓名2015 12th International Conference on Fuzzy Systems and Knowledge Discovery, FSKD 2015

会议

会议12th International Conference on Fuzzy Systems and Knowledge Discovery, FSKD 2015
国家/地区中国
Zhangjiajie
时期15/08/1517/08/15

指纹

探究 'Semantics-based memory leak detection for C programs' 的科研主题。它们共同构成独一无二的指纹。

引用此