diff --git a/cve_bin_tool/checkers/icu.py b/cve_bin_tool/checkers/icu.py index 16d07d7691..1950e28bf9 100644 --- a/cve_bin_tool/checkers/icu.py +++ b/cve_bin_tool/checkers/icu.py @@ -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"), diff --git a/test/condensed-downloads/libicu61-61.1-1.tar.xz.tar.gz b/test/condensed-downloads/libicu61-61.1-1.tar.xz.tar.gz new file mode 100644 index 0000000000..eed2583807 Binary files /dev/null and b/test/condensed-downloads/libicu61-61.1-1.tar.xz.tar.gz differ diff --git a/test/test_data/icu.py b/test/test_data/icu.py index 35efbcded3..bd9f6c00f4 100644 --- a/test/test_data/icu.py +++ b/test/test_data/icu.py @@ -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 = [ { @@ -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"], + }, ] diff --git a/test/test_data/node.py b/test/test_data/node.py index b1104885b0..5f05d419a5 100644 --- a/test/test_data/node.py +++ b/test/test_data/node.py @@ -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/",