TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Scaling Static Analyses at Facebook

126 点作者 dons将近 6 年前

6 条评论

wallstprog将近 6 年前
I think one of the unstated problems with static analysis is just keeping track of the results. I know that when I started working with these tools, it was a huge PITA just dealing with the various output files.<p>That&#x27;s why I created tools to convert the output from different tools into a common CSV format that can be databased and used to compare output from different tools, or from different versions of the code (e.g., after fixing errors reported by the tools).<p>These tools currently work with cppcheck, clang and PVS-Studio and can be found here: <a href="http:&#x2F;&#x2F;btorpey.github.io&#x2F;blog&#x2F;categories&#x2F;static-analysis&#x2F;" rel="nofollow">http:&#x2F;&#x2F;btorpey.github.io&#x2F;blog&#x2F;categories&#x2F;static-analysis&#x2F;</a>
评论 #20554666 未加载
nickpsecurity将近 6 年前
One of the things I like about this article is that it gives another example showing how formal methods catches deep errors unlikely to be caught with human review or testing:<p>&quot;Overall, the error trace found by Infer has <i>61 steps</i>, and the source of null, the call to X509 _ gmtime _ adj () goes five procedures deep and it eventually encounters a return of null at call-depth 4. &quot;<p>I think the example Amazon gave for TLA+ was thirty-something steps. Most people&#x27;s minds simply can&#x27;t track 61 steps into software. Tests always have a coverage issue.
SanchoPanda将近 6 年前
&gt; Zoncolan catches more SEVs than either manual security reviews or bug bounty reports. We measured that 43.3% of the severe security bugs are detected via Zoncolan. At press time, Zoncolan&#x27;s &quot;action rate&quot; is above 80% and we observed about 11 &quot;missed bugs.&quot;<p>&gt;. For the server-side, we have over 100-million lines of Hack code, which Zoncolan can process in less than 30 minutes. Additionally, we have 10s of millions of both mobile (Android and Objective C) code and backend C++ code<p>&gt; All codebases see thousands of code modifications each day and our tools run on each code change. For Zoncolan, this can amount to analyzing one trillion lines of code (LOC) per day.<p>11 &quot;missed bugs&quot; on the 100 mm server-side lines of code per run, or ever?
评论 #20551422 未加载
评论 #20551702 未加载
sanxiyn将近 6 年前
We should start to run Infer on all open source C and C++ code in existence.
评论 #20552181 未加载
mhxion将近 6 年前
Is there something wrong with acm&#x27;s load balancer or whatever? First managed to read to the end of the article, but to download the PDF showed &quot;Oops! This website is under heavy load.&quot; Now article page is under heavy load too.<p>Edit: It worked again right after I posted this comment.
sjtindell将近 6 年前
Always cool to read about scale.