Skip to content

Commit

Permalink
fix anchore_grype null characters issue, #9942 (#9962)
Browse files Browse the repository at this point in the history
* fix anchore_grype null characters issue, #9942

* fix null characters
  • Loading branch information
manuel-sommer authored Apr 22, 2024
1 parent 2a506bf commit 974ae73
Show file tree
Hide file tree
Showing 3 changed files with 323 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dojo/tools/anchore_grype/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,15 @@ def get_findings(self, file, test):
finding.nb_occurences += 1
else:
dupes[dupe_key] = Finding(
title=finding_title,
description=finding_description,
title=finding_title.replace("\x00", ""),
description=finding_description.replace("\x00", ""),
cwe=1352,
cvssv3=finding_cvss3,
severity=vuln_severity,
mitigation=finding_mitigation,
references=finding_references,
component_name=artifact_name,
component_version=artifact_version,
component_version=artifact_version.replace("\x00", ""),
vuln_id_from_tool=vuln_id,
tags=finding_tags,
static_finding=True,
Expand Down
Loading

0 comments on commit 974ae73

Please sign in to comment.