Skip to content

Commit 994d13f

Browse files
authored
feat(checker): add exfatprogs checker (#3542)
Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent 489a849 commit 994d13f

File tree

6 files changed

+51
-0
lines changed

6 files changed

+51
-0
lines changed

cve_bin_tool/checkers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"elfutils",
7676
"enscript",
7777
"emacs",
78+
"exfatprogs",
7879
"exim",
7980
"exiv2",
8081
"f2fs_tools",
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (C) 2023 Orange
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
5+
"""
6+
CVE checker for exfatprogs
7+
8+
https://www.cvedetails.com/product/163633/Namjaejeon-Exfatprogs.html?vendor_id=33445
9+
10+
"""
11+
from __future__ import annotations
12+
13+
from cve_bin_tool.checkers import Checker
14+
15+
16+
class ExfatprogsChecker(Checker):
17+
CONTAINS_PATTERNS: list[str] = []
18+
FILENAME_PATTERNS: list[str] = []
19+
VERSION_PATTERNS = [r"([0-9]+\.[0-9]+\.[0-9]+)\r?\nexfatprogs version : %s"]
20+
VENDOR_PRODUCT = [("namjaejeon", "exfatprogs")]
3.45 KB
Binary file not shown.
8.17 KB
Binary file not shown.
6.22 KB
Binary file not shown.

test/test_data/exfatprogs.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright (C) 2023 Orange
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
mapping_test_data = [
5+
{
6+
"product": "exfatprogs",
7+
"version": "1.1.0",
8+
"version_strings": ["1.1.0\nexfatprogs version : %s"],
9+
}
10+
]
11+
package_test_data = [
12+
{
13+
"url": "http://rpmfind.net/linux/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/e/",
14+
"package_name": "exfatprogs-1.2.2-1.fc40.aarch64.rpm",
15+
"product": "exfatprogs",
16+
"version": "1.2.2",
17+
},
18+
{
19+
"url": "http://ftp.fr.debian.org/debian/pool/main/e/exfatprogs/",
20+
"package_name": "exfatprogs_1.1.0-1_amd64.deb",
21+
"product": "exfatprogs",
22+
"version": "1.1.0",
23+
},
24+
{
25+
"url": "https://downloads.openwrt.org/releases/21.02.0/packages/x86_64/packages/",
26+
"package_name": "exfat-fsck_1.1.3-1_x86_64.ipk",
27+
"product": "exfatprogs",
28+
"version": "1.1.3",
29+
},
30+
]

0 commit comments

Comments
 (0)