Skip to content

Commit 9f19def

Browse files
authored
feat(checker): add doxygen checker (#2455)
Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent ab5c2fc commit 9f19def

File tree

5 files changed

+41
-0
lines changed

5 files changed

+41
-0
lines changed

cve_bin_tool/checkers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"dnsmasq",
5353
"domoticz",
5454
"dovecot",
55+
"doxygen",
5556
"dpkg",
5657
"dropbear",
5758
"e2fsprogs",

cve_bin_tool/checkers/doxygen.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (C) 2022 Orange
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
5+
"""
6+
CVE checker for doxygen:
7+
8+
https://www.cvedetails.com/product/55256/Doxygen-Doxygen.html?vendor_id=19902
9+
10+
"""
11+
from __future__ import annotations
12+
13+
from cve_bin_tool.checkers import Checker
14+
15+
16+
class DoxygenChecker(Checker):
17+
CONTAINS_PATTERNS: list[str] = []
18+
FILENAME_PATTERNS: list[str] = []
19+
VERSION_PATTERNS = [r"doxygen-([0-9]+\.[0-9]+\.[0-9]+)"]
20+
VENDOR_PRODUCT = [("doxygen", "doxygen")]
Binary file not shown.
Binary file not shown.

test/test_data/doxygen.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (C) 2022 Orange
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
mapping_test_data = [
5+
{"product": "doxygen", "version": "1.8.13", "version_strings": ["doxygen-1.8.13"]}
6+
]
7+
package_test_data = [
8+
{
9+
"url": "http://rpmfind.net/linux/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/d/",
10+
"package_name": "doxygen-1.9.5-2.fc38.aarch64.rpm",
11+
"product": "doxygen",
12+
"version": "1.9.5",
13+
},
14+
{
15+
"url": "http://ftp.fr.debian.org/debian/pool/main/d/doxygen/",
16+
"package_name": "doxygen_1.8.13-4+b1_amd64.deb",
17+
"product": "doxygen",
18+
"version": "1.8.13",
19+
},
20+
]

0 commit comments

Comments
 (0)