- 1、本文档共40页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
C语言源代码静态检测工具设计与实现毕业论文
C语言源代码静态检测工具设计与实现
学 院 计算机学院 专 业 班 级 学 号 姓 名 指导教师 负责教师
沈阳航空2014年6月摘 要
关键词:C源代码;静态代码分析
Development of C language source code static analysis tool
Abstract
With the development of the information society, the problem of Internet insecurity is becoming more and more serious. Many of these problems are due to the flaw of the software itself and therefore cause huge economic losses.
On one hand, it is because of the programmer’s negligence on software producing, and on the other hand, it is also because the relative languages dose not provide a complete security mechanism. Among many languages, C language is believed as the most vulnerable one to be attacked. As a result, the code safety check seems very important. However, because the modern software engineering is becoming more and more complicated, the traditional check methods can not meet the requirement in accuracy and efficiency, so the static code analysis emerge as the times require.
This paper will first investigate the current situation and main trend of the static code analysis at home and abroad. And then put forward our ideas and design objectives. Discusses in detail about the system requirements analysis, preliminary design, detailed design and implementation, system testing and other related processes, integrating open source static detection tools Splint and Flawfinder through the use of the Python language, implement static security check code and generate analytic charts and other functions.
Keywords: Safety testing; C source code; static code analysis
目 录
1 绪论 6
1.1 研究背景 6
1.2 设计目标 7
1.2.1 主要内容 7
1.2.2 设计要求 7
1.3 国内外现状 7
1.3.1 模型检验 8
1.3.2 携带源代码 8
1.3.3 词法扫描 8
1.3.4 简单语义分析 8
1.4 软件代码风险介绍与原理 9
1.4.1 内存访问错 9
1.4.2 缓冲区溢出 10
1.4.3 竞争条件 11
1.4.4 随机数滥用 12
1.4.5 异常处理 12
1.4.6 空指针引用 12
1.5 技术简介 13
1.5.1 Python语言简介 13
1.5.2 PyQt图形类库简介 13
1.5.3 SQLite数据库简介 13
2 需求分析 15
2.1 用户需求 15
2.2 系统需求 15
2.2.1 实现代码静态安全分析需求 15
2.2.2 代码检查工具基本控制需求 15
2.2.3 待检测代码列表管理需求 16
2.2.4 检测代码工具参数设置需求 16
2.
文档评论(0)