diff --git a/cve_bin_tool/checkers/__init__.py b/cve_bin_tool/checkers/__init__.py index c4640d99b3..cf418b3198 100644 --- a/cve_bin_tool/checkers/__init__.py +++ b/cve_bin_tool/checkers/__init__.py @@ -126,6 +126,7 @@ "grub2", "gstreamer", "gupnp", + "guile", "gvfs", "gzip", "haproxy", diff --git a/cve_bin_tool/checkers/guile.py b/cve_bin_tool/checkers/guile.py new file mode 100644 index 0000000000..ec14849c0d --- /dev/null +++ b/cve_bin_tool/checkers/guile.py @@ -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")] diff --git a/test/condensed-downloads/guile-2.2-libs_2.2.7+1-9build3_amd64.deb.tar.gz b/test/condensed-downloads/guile-2.2-libs_2.2.7+1-9build3_amd64.deb.tar.gz new file mode 100644 index 0000000000..0db1d54c55 Binary files /dev/null and b/test/condensed-downloads/guile-2.2-libs_2.2.7+1-9build3_amd64.deb.tar.gz differ diff --git a/test/test_data/guile.py b/test/test_data/guile.py new file mode 100644 index 0000000000..bb1f0e2cc7 --- /dev/null +++ b/test/test_data/guile.py @@ -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", + }, +]