软件安全实验一——实验报告
实验要求
- 使用Flawfinder(http://www.dwheeler.com/flawfinder)工具,对C/C++实现的软件进行静态分析。
- 搜集并了解其他的C/C++代码分析工具,如RATS、Splint等,比较这些工具的功能。
实验步骤
从Github上下载
jsoncpp
的源码(https://github.com/open-source-parsers/jsoncpp)作为实验对象,其中`jsoncpp` 是一个常用的 C++ 库,用于解析、生成和操作 JSON 数据,在Github上该库拥有8.2k stars和2.6k forks。使用pip下载安装flawfinder。
1
pip install flawfinder
使用flawfinder对
jsoncpp
的源码进行静态分析。1
flawfinder jsoncpp-master