如何跳过 fortify 源代码分析器报告的选定错误?

发布于 2024-08-16 17:04:21 字数 130 浏览 5 评论 0原文

在通过强化源代码分析器分析源代码时,如果我想跳过选定的类别,请说“错误处理不佳:空捕获块” - 有什么方法可以做到这一点吗?对于 checkstyle 报告生成器,有一种方法可以跳过报告的选定错误。我希望在强化源代码分析器的情况下具有这种灵活性。

While getting scource code analyzed by fortify source code analyzer if I want to skip selected catagory say "Poor Error Handling : Empty Catch Block" - is there any way to do that? In case of checkstyle report generator there is a way to skip selected error being reported. I would like to have that flexibility in case of fortify source code analyzer.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟─花易冷 2024-08-23 17:04:21

首先,在 Fortify Audit Workbench 中打开包含“错误处理不良:空捕获块”的结果。然后,找到一个空捕获块发现,右键单击它并选择“创建过滤器...”

在过滤器对话框中,选择条件“类别匹配不良错误处理:空捕获块”,然后在下面的操作部分中,选择“隐藏”。保存过滤器。

您会发现的第一件事是所有空捕获块的发现物都消失了。在此阶段,过滤器仅存储在 FPR 中。

要按照策略发布此过滤器,请选择“工具”->“项目配置”并导出您的项目模板。将文件保存在安装目录中的 Core/config/filters/ 中,如自述文件中指定。如果您在所有生成扫描的计算机上执行此操作,则所有 FPR 将共享相同的过滤器。

如果您有中央 Fortify 360 服务器,则可以将此项目模板导入到服务器中。它将自动应用于该模板项目的任何上传。

First, open results containing "Poor Error Handling: Empty Catch Block" in Fortify Audit Workbench. Then, find an Empty Catch Block finding, right click it and select "Create Filter..."

In the filter dialog, select the condition "Category matches Poor Error Handling: Empty Catch Block", and then in the Action section below, select "Hide". Save the filter.

The first thing you'll find is all the Empty Catch Block findings have disappeared. The filter is simply stored in the FPR at this stage.

To publish this filter as a matter of policy, choose Tools->Project Configuration and export your project template. Save the file in the installation directory in Core/config/filters/ as specified in the readme file there. If you do this on all your computers that produce scans, all your FPRs will share the same filter.

If you have a central Fortify 360 Server, you can import this project template into the server instead. It will automatically be applied to any upload to a project of that template.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文