Skip to content

Commit 7ed8599

Browse files
authored
fix: Improve Heimdal detection (intel#4746)
1 parent 448c159 commit 7ed8599

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

cve_bin_tool/checkers/heimdal.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@
1616
class HeimdalChecker(Checker):
1717
CONTAINS_PATTERNS: list[str] = []
1818
FILENAME_PATTERNS: list[str] = []
19-
VERSION_PATTERNS = [r"Heimdal ([0-9]+\.[0-9]+\.[0-9]+)"]
19+
VERSION_PATTERNS = [
20+
r"Heimdal ([0-9]+\.[0-9]+\.[0-9]+)",
21+
r"Heimdal crypto ltm engine version ([0-9]+\.[0-9]+\.[0-9]+)",
22+
]
2023
VENDOR_PRODUCT = [("heimdal_project", "heimdal")]

test/test_data/heimdal.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
# SPDX-License-Identifier: GPL-3.0-or-later
33

44
mapping_test_data = [
5-
{"product": "heimdal", "version": "7.5.0", "version_strings": ["Heimdal 7.5.0"]}
5+
{
6+
"product": "heimdal",
7+
"version": "7.5.0",
8+
"version_strings": [
9+
"Heimdal 7.5.0",
10+
"Heimdal crypto ltm engine version 7.5.0",
11+
],
12+
}
613
]
714
package_test_data = [
815
{
@@ -17,6 +24,12 @@
1724
"product": "heimdal",
1825
"version": "7.5.0",
1926
},
27+
{
28+
"url": "http://ftp.debian.org/debian/pool/main/h/heimdal/",
29+
"package_name": "libhcrypto5-heimdal_7.8.git20221117.28daf24+dfsg-2_amd64.deb",
30+
"product": "heimdal",
31+
"version": "7.8.0",
32+
},
2033
{
2134
"url": "https://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/",
2235
"package_name": "heimdal-7.7.0-r0.apk",

0 commit comments

Comments
 (0)