Skip to content

Commit 79ccbd3

Browse files
authored
fix: update libidn2 pattern (#5524)
Update libidn2 pattern to detect version in latest libidn2 Signed-off-by: Fontaine Fabrice <[email protected]>
1 parent fd66bcf commit 79ccbd3

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

cve_bin_tool/checkers/libidn2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ class Libidn2Checker(Checker):
2020
r"libidn2[a-z0-9\.]*-([0-9]+\.[0-9]+\.[0-9]+)",
2121
r"Simon Josefsson[a-zA-Z ,]*\r?\n([0-9]+\.[0-9]+\.[0-9]+)",
2222
r"([0-9]+\.[0-9]+\.[0-9]+)\r?\nCopyright \(C\) [0-9-]* Simon Josefsson",
23+
r"\r?\n([0-9]+\.[0-9]+\.[0-9]+)[a-zA-Z0-9()/ \-\r\n]*IDN2_",
2324
]
2425
VENDOR_PRODUCT = [("gnu", "libidn2")]
5.29 KB
Binary file not shown.

test/test_data/libidn2.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343
"product": "libidn2",
4444
"version": "2.3.0",
4545
},
46+
{
47+
"url": "http://ftp.debian.org/debian/pool/main/libi/libidn2/",
48+
"package_name": "libidn2-0_2.3.8-2_riscv64.deb",
49+
"product": "libidn2",
50+
"version": "2.3.8",
51+
},
4652
{
4753
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/packages/",
4854
"package_name": "libidn2_2.0.5-1_x86_64.ipk",

0 commit comments

Comments
 (0)