信息安全研究 ›› 2022, Vol. 8 ›› Issue (1): 85-.

• 技术应用 • 上一篇    下一篇

基于智能电网内部数据流分析的内存泄露检测方法研究

陈畅;刘福来;   

  1. (广东电网有限责任公司广州供电局  广州  510620)

  • 出版日期:2022-01-09 发布日期:2022-01-07
  • 通讯作者: 陈 畅 硕士,高级工程师. 主要研究方向为变电站继电保护运维、电网基建项目管理、电网基建安全管理.
  • 作者简介:陈 畅 硕士,高级工程师. 主要研究方向为变电站继电保护运维、电网基建项目管理、电网基建安全管理. change.c@163.com 刘福来 高级工程师. 主要研究方向为电力系统安全、电厂建筑工程结构设计. 783101323@qq.com

Research on Memory Leak Detection Method Based on Internal Data Flow of Smart Grid

  • Online:2022-01-09 Published:2022-01-07

摘要: 智能电网中的安全系统除了要实现普通应用系统的功能外,还要保证它所管理资源的安全性,包括保密性、完整性和可用性等.相较于其他等编程语言,C++更接近操作系统底层,一些对性能有较高要求的底层算法需要通其实现,同时正是由于C++能够直接控制系统资源的分配和使用,这就为内存泄露埋下了隐患.本文提出一种基于电网操作系统中数据流分析进行内存泄露检测的方法,主要研究目标是提取目标代码或源程序的数据流,并利用数据流对其分析,实现内存泄露的检测.经过实验表明,文章提出的方法能够对由C++指针使用不当造成的内存泄露进行有效的检测,在自动化测试、程序静态检测等方面具有实际意义.

关键词: 智能电网, C, 内存泄露, 数据流, 静态检测, 自动化测试

Abstract: In addition to realizing the functions of the common application system, the security system in smart grid also needs to ensure the security of the resources it manages, including confidentiality, integrity and availability. Compared with other programming languages, C++ is closer to the bottom layer of the operating system, and some underlying algorithms with high performance requirements need to be implemented. At the same time, because C++ can directly control the allocation and use of system resources, it has laid hidden trouble for memory leakage. In this paper, a memory leak detection method based on data flow analysis in power grid operating system is proposed. The main research objective is to extract the data flow of the object code or source program, and use the data flow to analyze it, and realize the memory leak detection. The experimental results show that the proposed method can effectively detect the memory leak caused by the improper use of C++ pointer, and has practical significance in the aspects of automatic test and static program detection. 


Key words: smart grid, C , , memory leak, data flow, static detection, automatic test