Skip to content

Commit

Permalink
fix: update openjpeg checker
Browse files Browse the repository at this point in the history
Update openjpeg pattern to catch version on debian and alpine packages

Signed-off-by: Fabrice Fontaine <[email protected]>
  • Loading branch information
ffontaine committed Jan 28, 2025
1 parent 3029cb0 commit 4736994
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions cve_bin_tool/checkers/openjpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ class OpenjpegChecker(Checker):
VERSION_PATTERNS = [
r"openjpeg-([0-9]+\.[0-9]+\.[0-9]+)",
r"openjpeg2-([0-9]+\.[0-9]+\.[0-9]+)",
r"([0-9]+\.[0-9]+\.[0-9]+)[A-Za-z/ \.\r\n]*(?:opj_setup_decoder|openjp2)",
]
VENDOR_PRODUCT = [("uclouvain", "openjpeg")]
Binary file not shown.
Binary file not shown.
12 changes: 12 additions & 0 deletions test/test_data/openjpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,16 @@
"product": "openjpeg",
"version": "2.1.0",
},
{
"url": "http://ftp.debian.org/debian/pool/main/o/openjpeg2/",
"package_name": "libopenjp2-7_2.5.0-2_arm64.deb",
"product": "openjpeg",
"version": "2.5.0",
},
{
"url": "https://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/",
"package_name": "openjpeg-2.4.0-r1.apk",
"product": "openjpeg",
"version": "2.4.0",
},
]

0 comments on commit 4736994

Please sign in to comment.