diff --git a/cve_bin_tool/checkers/gimp.py b/cve_bin_tool/checkers/gimp.py index 1da1a9f48c..bf476fafb3 100644 --- a/cve_bin_tool/checkers/gimp.py +++ b/cve_bin_tool/checkers/gimp.py @@ -16,5 +16,5 @@ class GimpChecker(Checker): CONTAINS_PATTERNS: list[str] = [] FILENAME_PATTERNS = [r"gimp"] - VERSION_PATTERNS = [r"GIMP ([0-9]+\.[0-9]+\.[0-9]+)"] + VERSION_PATTERNS = [r"image-uri\r?\nGIMP ([0-9]+\.[0-9]+\.[0-9]+)"] VENDOR_PRODUCT = [("gimp", "gimp")] diff --git a/test/test_data/gimp.py b/test/test_data/gimp.py index 16461823e4..e55ac5f433 100644 --- a/test/test_data/gimp.py +++ b/test/test_data/gimp.py @@ -2,7 +2,11 @@ # SPDX-License-Identifier: GPL-3.0-or-later mapping_test_data = [ - {"product": "gimp", "version": "2.6.10", "version_strings": ["GIMP 2.6.10"]} + { + "product": "gimp", + "version": "2.6.10", + "version_strings": ["image-uri\nGIMP 2.6.10"], + } ] package_test_data = [ { diff --git a/test/test_data/stellarium.py b/test/test_data/stellarium.py index c9ce4ec5f2..3d5e7bf548 100644 --- a/test/test_data/stellarium.py +++ b/test/test_data/stellarium.py @@ -10,7 +10,6 @@ "package_name": "stellarium-1.2-9.fc39.aarch64.rpm", "product": "stellarium", "version": "1.2", - "other_products": ["gimp"], }, { "url": "http://ftp.fr.debian.org/debian/pool/main/s/stellarium/",