Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

results: do not duplicate important findings #147

Merged
merged 1 commit into from
Dec 21, 2023
Merged

Conversation

kdudka
Copy link
Member

@kdudka kdudka commented Dec 20, 2023

... that are tagged important by both a csmock plug-in and the scanner itself. In a scan of gcc-toolset-12-gcc-12.2.1-7.4.el9 we had more important findings than all findings, which does not really make any sense:

% grep RESOURCE_LEAK gcc-toolset-12-gcc-12.2.1-7.4.el9/scan-results-imp-summary.txt
      2 RESOURCE_LEAK                                           error[too-many]
   2046 RESOURCE_LEAK                                           leaked_storage
    756 RESOURCE_LEAK                                           overwrite_var

% grep RESOURCE_LEAK gcc-toolset-12-gcc-12.2.1-7.4.el9/scan-results-all-summary.txt
      1 RESOURCE_LEAK                                           error[too-many]
   1023 RESOURCE_LEAK                                           leaked_storage
    378 RESOURCE_LEAK                                           overwrite_var

Resolves: https://issues.redhat.com/browse/OSH-466

@kdudka kdudka requested a review from hanchuntao December 20, 2023 13:34
@kdudka kdudka self-assigned this Dec 20, 2023
... that are tagged important by both a csmock plug-in and the scanner
itself.  In a scan of gcc-toolset-12-gcc-12.2.1-7.4.el9 we had more
important findings than all findings, which does not really make any
sense:
```
% grep RESOURCE_LEAK gcc-toolset-12-gcc-12.2.1-7.4.el9/scan-results-imp-summary.txt
      2 RESOURCE_LEAK                                           error[too-many]
   2046 RESOURCE_LEAK                                           leaked_storage
    756 RESOURCE_LEAK                                           overwrite_var

% grep RESOURCE_LEAK gcc-toolset-12-gcc-12.2.1-7.4.el9/scan-results-all-summary.txt
      1 RESOURCE_LEAK                                           error[too-many]
   1023 RESOURCE_LEAK                                           leaked_storage
    378 RESOURCE_LEAK                                           overwrite_var
```

Resolves: https://issues.redhat.com/browse/OSH-466
Closes: csutils#147
@kdudka kdudka merged commit 509e087 into csutils:main Dec 21, 2023
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants