Skip to content

Commit 4062141

Browse files
committed
feat(checker): Detect libicu 61, as found in msys/cygwin
1 parent 5ecff54 commit 4062141

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

cve_bin_tool/checkers/icu.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class IcuChecker(Checker):
2424
VERSION_PATTERNS = [
2525
r"icu(?:-|/)([0-9]+\.[0-9]+(\.[0-9]+)?)",
2626
r"ICU ([0-9]+\.[0-9]+(\.[0-9]+)?)",
27+
r"icudt([0-9]+)_dat",
2728
]
2829
VENDOR_PRODUCT = [
2930
("icu-project", "international_components_for_unicode"),
Binary file not shown.

test/test_data/icu.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@
1717
"version": "68.2",
1818
"version_strings": ["icu/68.2"],
1919
},
20+
{
21+
"product": "international_components_for_unicode",
22+
"version": "68.2",
23+
"version_strings": ["icu/68.2"],
24+
},
25+
{
26+
"product": "international_components_for_unicode",
27+
"version": "62",
28+
"version_strings": ["icudt62_dat"],
29+
},
2030
]
2131
package_test_data = [
2232
{
@@ -63,4 +73,11 @@
6373
# "version": "2.6.2",
6474
# "other_products": ["gcc"],
6575
# },
76+
{
77+
"url": "https://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/x86_64/release/icu/libicu61/",
78+
"package_name": "libicu61-61.1-1.tar.xz",
79+
"product": "international_components_for_unicode",
80+
"version": "61",
81+
"other_products": ["gcc"],
82+
},
6683
]

0 commit comments

Comments
 (0)