【发布时间】:2011-12-01 02:38:41
【问题描述】:
我正在为这些寻找静态分析开源工具,
-
检查函数的返回值。
foobar = Get_FooBar(...); //this function could return null pointer. foobar->property = value; //no null check here! -
malloc返回的指针。foobar = (void *)malloc(..); foobar->property = value; //return value of malloc is not checked.
cppcheck 没有捕捉到这一点,AFAIK。 你们还有其他推荐的开源/免费软件吗?
【问题讨论】: