MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / parse_vulnerabilities

Function parse_vulnerabilities

vulnerabilities/importers/openssl.py:50–56  ·  view source on GitHub ↗
(xml_response)

Source from the content-addressed store, hash-verified

48
49
50def parse_vulnerabilities(xml_response) -> Iterable[AdvisoryData]:
51 root = DET.fromstring(xml_response)
52 for xml_issue in root:
53 if xml_issue.tag == "issue":
54 advisory = to_advisory_data(xml_issue)
55 if advisory:
56 yield advisory
57
58
59def to_advisory_data(xml_issue) -> AdvisoryData:

Callers 1

advisory_dataMethod · 0.85

Calls 1

to_advisory_dataFunction · 0.70

Tested by

no test coverage detected