Skip to content

Commit 24d4462

Browse files
authored
feat(checker): add open_babel (#5327)
Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent 781fa9e commit 24d4462

File tree

5 files changed

+45
-0
lines changed

5 files changed

+45
-0
lines changed

cve_bin_tool/checkers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@
308308
"ntpsec",
309309
"oath_toolkit",
310310
"ofono",
311+
"open_babel",
311312
"open_iscsi",
312313
"open_vm_tools",
313314
"openafs",
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (C) 2025 Orange
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
5+
"""
6+
CVE checker for open_babel
7+
8+
https://www.cvedetails.com/product/155095/Openbabel-Open-Babel.html?vendor_id=32383
9+
10+
"""
11+
from __future__ import annotations
12+
13+
from cve_bin_tool.checkers import Checker
14+
15+
16+
class OpenBabelChecker(Checker):
17+
CONTAINS_PATTERNS: list[str] = []
18+
FILENAME_PATTERNS: list[str] = []
19+
VERSION_PATTERNS = [r"Open Babel \r?\n([0-9]+\.[0-9]+\.[0-9]+)"]
20+
VENDOR_PRODUCT = [("openbabel", "open_babel")]
20.7 KB
Binary file not shown.
43.9 KB
Binary file not shown.

test/test_data/open_babel.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright (C) 2025 Orange
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
mapping_test_data = [
5+
{
6+
"product": "open_babel",
7+
"version": "3.1.1",
8+
"version_strings": ["Open Babel \n3.1.1"],
9+
}
10+
]
11+
package_test_data = [
12+
{
13+
"url": "http://rpmfind.net/linux/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/o/",
14+
"package_name": "openbabel-3.1.1-39.fc44.aarch64.rpm",
15+
"product": "open_babel",
16+
"version": "3.1.1",
17+
},
18+
{
19+
"url": "http://ftp.debian.org/debian/pool/main/o/openbabel/",
20+
"package_name": "openbabel_3.1.1+dfsg-6_amd64.deb",
21+
"product": "open_babel",
22+
"version": "3.1.1",
23+
},
24+
]

0 commit comments

Comments
 (0)