diff --git a/cve_bin_tool/output_engine/__init__.py b/cve_bin_tool/output_engine/__init__.py index ab2fc15baa..24ce16a0dd 100644 --- a/cve_bin_tool/output_engine/__init__.py +++ b/cve_bin_tool/output_engine/__init__.py @@ -481,8 +481,12 @@ def output_pdf( [10, 10, 10], ) row = 1 + products_with_cves = list(map(lambda x: (x[1]), all_cve_data)) for product_data in all_product_data: - if all_product_data[product_data] == 0: + if ( + all_product_data[product_data] == 0 + and product_data.product not in products_with_cves + ): product_entry = [ product_data.vendor, product_data.product, diff --git a/cve_bin_tool/output_engine/console.py b/cve_bin_tool/output_engine/console.py index e442c50d1c..c1c479e89d 100644 --- a/cve_bin_tool/output_engine/console.py +++ b/cve_bin_tool/output_engine/console.py @@ -258,8 +258,12 @@ def validate_cell_length(cell_name, cell_type): table.add_column("Product") table.add_column("Version") + products_with_cves = list(map(lambda x: (x[1]), all_cve_data)) for product_data in all_product_data: - if all_product_data[product_data] == 0: + if ( + all_product_data[product_data] == 0 + and product_data.product not in products_with_cves + ): cells = [ Text.styled(product_data.vendor, color), Text.styled(product_data.product, color),