Skip to content

Commit

Permalink
feat(checker): Detect libicu 61, as found in msys/cygwin (#4737)
Browse files Browse the repository at this point in the history
  • Loading branch information
qmfrederik authored Feb 21, 2025
1 parent 804d7a0 commit a478bce
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions cve_bin_tool/checkers/icu.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class IcuChecker(Checker):
VERSION_PATTERNS = [
r"icu(?:-|/)([0-9]+\.[0-9]+(\.[0-9]+)?)",
r"ICU ([0-9]+\.[0-9]+(\.[0-9]+)?)",
r"icudt([0-9]+)_dat",
]
VENDOR_PRODUCT = [
("icu-project", "international_components_for_unicode"),
Expand Down
Binary file not shown.
17 changes: 17 additions & 0 deletions test/test_data/icu.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@
"version": "68.2",
"version_strings": ["icu/68.2"],
},
{
"product": "international_components_for_unicode",
"version": "68.2",
"version_strings": ["icu/68.2"],
},
{
"product": "international_components_for_unicode",
"version": "62",
"version_strings": ["icudt62_dat"],
},
]
package_test_data = [
{
Expand Down Expand Up @@ -63,4 +73,11 @@
# "version": "2.6.2",
# "other_products": ["gcc"],
# },
{
"url": "https://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/x86_64/release/icu/libicu61/",
"package_name": "libicu61-61.1-1.tar.xz",
"product": "international_components_for_unicode",
"version": "61",
"other_products": ["gcc"],
},
]
2 changes: 1 addition & 1 deletion test/test_data/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"package_name": "rh-nodejs14-nodejs-14.16.0-1.el7.x86_64.rpm",
"product": "node.js",
"version": "14.16.0",
"other_products": ["libuv", "zlib"],
"other_products": ["libuv", "zlib", "international_components_for_unicode"],
},
{
"url": "http://ftp.debian.org/debian/pool/main/n/nodejs/",
Expand Down

0 comments on commit a478bce

Please sign in to comment.