Skip to content

Commit 4736994

Browse files
committed
fix: update openjpeg checker
Update openjpeg pattern to catch version on debian and alpine packages Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent 3029cb0 commit 4736994

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

cve_bin_tool/checkers/openjpeg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ class OpenjpegChecker(Checker):
2727
VERSION_PATTERNS = [
2828
r"openjpeg-([0-9]+\.[0-9]+\.[0-9]+)",
2929
r"openjpeg2-([0-9]+\.[0-9]+\.[0-9]+)",
30+
r"([0-9]+\.[0-9]+\.[0-9]+)[A-Za-z/ \.\r\n]*(?:opj_setup_decoder|openjp2)",
3031
]
3132
VENDOR_PRODUCT = [("uclouvain", "openjpeg")]
Binary file not shown.
Binary file not shown.

test/test_data/openjpeg.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,16 @@
2424
"product": "openjpeg",
2525
"version": "2.1.0",
2626
},
27+
{
28+
"url": "http://ftp.debian.org/debian/pool/main/o/openjpeg2/",
29+
"package_name": "libopenjp2-7_2.5.0-2_arm64.deb",
30+
"product": "openjpeg",
31+
"version": "2.5.0",
32+
},
33+
{
34+
"url": "https://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/",
35+
"package_name": "openjpeg-2.4.0-r1.apk",
36+
"product": "openjpeg",
37+
"version": "2.4.0",
38+
},
2739
]

0 commit comments

Comments
 (0)