计算机科学 ›› 2014, Vol. 41 ›› Issue (Z6): 442-444.

• 软件工程与数据库技术 • 上一篇    下一篇

C语言静态代码分析中的调用关系提取方法

江梦涛,荆琦   

  1. 北京大学软件与微电子学院 北京100871;北京大学软件与微电子学院 北京100871
  • 出版日期:2018-11-14 发布日期:2018-11-14
  • 基金资助:
    本文受“核高基”科技重大专项:操作系统内核分析和安全性评估(2012ZX01039-004)资助

Method of Extracting Function Call Relationship in Static Code Analysis of C Language

JIANG Meng-tao and JING Qi   

  • Online:2018-11-14 Published:2018-11-14

摘要: 程序静态分析(Program Static Analysis)是指在不运行代码的方式下,通过词法分析、语法分析、控制流分析等技术对程序代码进行扫描,验证代码是否满足规范性、安全性、可靠性、可维护性等指标的一种代码分析技术。首先对程序静态分析的特点、常用静态分析技术、静态分析实现方式进行描述,然后通过一个实例讲解C语言静态代码分析中函数与变量的调用关系的实现方法,总结了现今在C语言调用关系分析中可以借鉴的工具与实现方式。

关键词: 程序静态分析,函数调用,代码安全 中图法分类号TP314文献标识码A

Abstract: Program Static Analysis is a method,of verificating whether code could meet the specification,safety,reliabili-ty,maintainability and other indicators with scanning the program code through lexical analysis,syntax analysis and control flow analysis techno-logy,and without running the code actually.This paper presents the characteristics,technologies,implementations of static code analysis,and then explain the methods of parsing function calls in C language static code analysis.

Key words: Static code analysis,Function call,Code security

[1] Wichmann B A,Canning A A,Clutterbuck D L,et al.Industrial Perspective on Static Analysis[J].Software Engineering Journal 1995,10(2):69-75
[2] Briand P,Brochet M,Cambois T,et al.Software Quality Objectives for Source Code[C]∥Proceedings Embedded Real Time Software and Systems 2010Conference.ERTS2,Toulouse,Fra,2010
[3] Improving Software Security with Precise Static and Runtime Analysis[D].Stanford University,2006

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!