Skip to content

Commit a478bce

Browse files
authored
feat(checker): Detect libicu 61, as found in msys/cygwin (#4737)
1 parent 804d7a0 commit a478bce

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
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
]

test/test_data/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"package_name": "rh-nodejs14-nodejs-14.16.0-1.el7.x86_64.rpm",
1515
"product": "node.js",
1616
"version": "14.16.0",
17-
"other_products": ["libuv", "zlib"],
17+
"other_products": ["libuv", "zlib", "international_components_for_unicode"],
1818
},
1919
{
2020
"url": "http://ftp.debian.org/debian/pool/main/n/nodejs/",

0 commit comments

Comments
 (0)