Skip to content

Commit

Permalink
feat(checkers): Add guile
Browse files Browse the repository at this point in the history
  • Loading branch information
qmfrederik committed Feb 2, 2025
1 parent 5ecff54 commit dbec2f6
Show file tree
Hide file tree
Showing 4 changed files with 39 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 @@ -126,6 +126,7 @@
"grub2",
"gstreamer",
"gupnp",
"guile",
"gvfs",
"gzip",
"haproxy",
Expand Down
20 changes: 20 additions & 0 deletions cve_bin_tool/checkers/guile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (C) 2021 Intel Corporation
# SPDX-License-Identifier: GPL-3.0-or-later


"""
CVE checker for guile
https://www.cvedetails.com/product/35586/
"""
from cve_bin_tool.checkers import Checker


class GuileChecker(Checker):
CONTAINS_PATTERNS = []
FILENAME_PATTERNS = []
VERSION_PATTERNS = [
r"guileversion\r?\n([0-9]+\.[0-9]+\.[0-9]+)\r?\n",
]
VENDOR_PRODUCT = [("gnu", "guile")]
Binary file not shown.
18 changes: 18 additions & 0 deletions test/test_data/guile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (C) 2025 Keysight Technologies
# SPDX-License-Identifier: GPL-3.0-or-later

mapping_test_data = [
{
"product": "guile",
"version": "2.2.4",
"version_strings": ["guileversion\n2.2.4\n"],
},
]
package_test_data = [
{
"url": "http://de.archive.ubuntu.com/ubuntu/pool/universe/g/guile-2.2/",
"package_name": "guile-2.2-libs_2.2.7+1-9build3_amd64.deb",
"product": "guile",
"version": "2.2.7",
},
]

0 comments on commit dbec2f6

Please sign in to comment.