Skip to content

Commit

Permalink
feat(checker): add boa checker (#4763)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Fontaine <[email protected]>
  • Loading branch information
ffontaine authored Feb 6, 2025
1 parent e7306a8 commit 766011a
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions cve_bin_tool/checkers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"bird",
"bison",
"bluez",
"boa",
"boinc",
"botan",
"bro",
Expand Down
20 changes: 20 additions & 0 deletions cve_bin_tool/checkers/boa.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (C) 2025 Orange
# SPDX-License-Identifier: GPL-3.0-or-later


"""
CVE checker for boa
https://www.cvedetails.com/product/18647/BOA-BOA.html?vendor_id=596
"""
from __future__ import annotations

from cve_bin_tool.checkers import Checker


class BoaChecker(Checker):
CONTAINS_PATTERNS: list[str] = []
FILENAME_PATTERNS: list[str] = []
VERSION_PATTERNS = [r"Boa/([0-9]+\.[0-9]+\.[0-9]+)"]
VENDOR_PRODUCT = [("boa", "boa")]
Binary file not shown.
14 changes: 14 additions & 0 deletions test/test_data/boa.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (C) 2025 Orange
# SPDX-License-Identifier: GPL-3.0-or-later

mapping_test_data = [
{"product": "boa", "version": "0.94.14", "version_strings": ["Boa/0.94.14"]}
]
package_test_data = [
{
"url": "http://rpmfind.net/linux/openmandriva/5.0/repository/x86_64/unsupported/release/",
"package_name": "boa-0.94.14-0.rc21.3-omv4002.x86_64.rpm",
"product": "boa",
"version": "0.94.14",
},
]

0 comments on commit 766011a

Please sign in to comment.