Skip to content

Commit 017a70e

Browse files
authored
feat(checkers): Add guile (#4756)
1 parent 5929985 commit 017a70e

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed

cve_bin_tool/checkers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132
"gsasl",
133133
"gstreamer",
134134
"gupnp",
135+
"guile",
135136
"gvfs",
136137
"gzip",
137138
"haproxy",

cve_bin_tool/checkers/guile.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (C) 2025 Keysight Technologies
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
5+
"""
6+
CVE checker for guile
7+
8+
https://www.cvedetails.com/product/35586/
9+
10+
"""
11+
from cve_bin_tool.checkers import Checker
12+
13+
14+
class GuileChecker(Checker):
15+
CONTAINS_PATTERNS = []
16+
FILENAME_PATTERNS = []
17+
VERSION_PATTERNS = [
18+
r"guileversion\r?\n([0-9]+\.[0-9]+\.[0-9]+)\r?\n",
19+
]
20+
VENDOR_PRODUCT = [("gnu", "guile")]
Binary file not shown.

test/test_data/guile.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (C) 2025 Keysight Technologies
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
mapping_test_data = [
5+
{
6+
"product": "guile",
7+
"version": "2.2.4",
8+
"version_strings": ["guileversion\n2.2.4\n"],
9+
},
10+
]
11+
package_test_data = [
12+
{
13+
"url": "http://de.archive.ubuntu.com/ubuntu/pool/universe/g/guile-2.2/",
14+
"package_name": "guile-2.2-libs_2.2.7+1-9build3_amd64.deb",
15+
"product": "guile",
16+
"version": "2.2.7",
17+
},
18+
]

0 commit comments

Comments
 (0)