Skip to content

Commit 875a882

Browse files
authored
Merge branch 'intel:main' into main
2 parents 5e57d5b + 04c47b8 commit 875a882

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

cve_bin_tool/output_engine/html.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,7 @@ def output_html(
416416
vendor=product_info.vendor,
417417
name=product_info.product,
418418
version=product_info.version,
419-
cve_count=(
420-
0
421-
if cve_data["cves"][0][1] == "UNKNOWN"
422-
else len(cve_data["cves"])
423-
),
419+
cve_count=(len(cve_data["cves"])),
424420
severity_analysis=analysis_pie.to_html(
425421
full_html=False, include_plotlyjs=False
426422
),

cve_bin_tool/output_engine/print_mode/templates/content.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{% else %}
2222
<span class="h5">{{ product_info.product }} {{ product_info.version }}</span>
2323
{% endif %}
24-
<span class="h5 float-end mr-5">CVE Count: {{ 0 if (not cve_data["cves"] or cve_data["cves"][0][1] == "UNKNOWN") else cve_data['cves'] | length }}</span><hr \>
24+
<span class="h5 float-end mr-5">CVE Count: {{ 0 if (not cve_data["cves"]) else cve_data['cves'] | length }}</span><hr \>
2525
</div>
2626
<!-- If CVE Number UNKNOWN don't render -->
2727
{% if cve_data["cves"] and cve_data["cves"][0][1] != "UNKNOWN" %}

test/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ To test the filename mappings, rather than making a bunch of empty files, we're
159159
)
160160
```
161161

162-
The function `test_filename_is` will then load the checker you have specified (and fail spectacularly if you specify a checker that does not exist), try to run `get_version()` with an empty file content and the filename you specified, then check that it "is" something (as opposed to "contains") and that the modulename that `get_version` returns is in fact the `expected_result` you specified.
162+
The function `test_filename_is` will then load the checker you have specified (and fail spectacularly if you specify a checker that does not exist), try to run `get_versions()` with an empty file content and the filename you specified, then check that it "is" something (as opposed to "contains") and that the modulename that `get_versions` returns is in fact the `expected_result` you specified.
163163

164164
For ease of maintenance, please keep the parametrize list in alphabetical order when you add a new tests.
165165

0 commit comments

Comments
 (0)