官网

http://www.splint.org/

splint能干什么?

splint是一个静态检查C语言代码安全弱点和编写错误的开源程序.(不支持C++)
splint会进行多种常规检查,包括
空指针
内存泄漏
内存越界
未使用的变量,
类型不一致,
使用未定义变量,
无法执行的代码,忽略返回值,
执行路径未返回,
无限循环等错误.
。。。。。

split的特点

功能强大,使用复杂,上手慢。
很久没有更新了。

安装

wget http://www.splint.org/downloads/splint-3.1.2.src.tgz
tar –xzf splint-3.1.2.src.tgz
cd splint-3.1.2
./configure && make && make install

vim ~/.bashrc
export LARCH_PATH=/usr/local/share/splint/lib
export LCLIMPORTDIR=/usr/local/share/splint/import

相关文章:

  • 2021-09-07
  • 2022-12-23
  • 2022-02-04
  • 2022-12-23
  • 2022-02-09
  • 2022-03-07
  • 2021-06-03
  • 2022-12-23
猜你喜欢
  • 2021-08-16
  • 2022-12-23
  • 2021-12-31
  • 2021-07-10
  • 2021-11-15
相关资源
相似解决方案