Skip to content

Commit cf7edfb

Browse files
committed
feat(checker): add openimageio checker
Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent d7a69a6 commit cf7edfb

File tree

6 files changed

+52
-0
lines changed

6 files changed

+52
-0
lines changed

cve_bin_tool/checkers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@
302302
"openafs",
303303
"openblas",
304304
"opencv",
305+
"openimageio",
305306
"openjpeg",
306307
"openldap",
307308
"opensc",

cve_bin_tool/checkers/openimageio.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (C) 2025 Orange
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
5+
"""
6+
CVE checker for openimageio
7+
8+
https://www.cvedetails.com/product/126860/Openimageio-Openimageio.html?vendor_id=29024
9+
10+
"""
11+
from __future__ import annotations
12+
13+
from cve_bin_tool.checkers import Checker
14+
15+
16+
class OpenimageioChecker(Checker):
17+
CONTAINS_PATTERNS: list[str] = []
18+
FILENAME_PATTERNS: list[str] = []
19+
VERSION_PATTERNS = [r"OpenImageIO ([0-9]+\.[0-9]+\.[0-9]+)"]
20+
VENDOR_PRODUCT = [("openimageio", "openimageio")]
Binary file not shown.
Binary file not shown.
Binary file not shown.

test/test_data/openimageio.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright (C) 2025 Orange
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
mapping_test_data = [
5+
{
6+
"product": "openimageio",
7+
"version": "2.0.5",
8+
"version_strings": ["OpenImageIO 2.0.5"],
9+
}
10+
]
11+
package_test_data = [
12+
{
13+
"url": "http://rpmfind.net/linux/mageia/distrib/cauldron/aarch64/media/core/release/",
14+
"package_name": "openimageio-2.5.18.0-6.mga10.aarch64.rpm",
15+
"product": "openimageio",
16+
"version": "2.5.18",
17+
},
18+
{
19+
"url": "http://ftp.debian.org/debian/pool/main/o/openimageio/",
20+
"package_name": "libopenimageio2.0_2.0.5~dfsg0-1_amd64.deb",
21+
"product": "openimageio",
22+
"version": "2.0.5",
23+
},
24+
{
25+
"url": "https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/",
26+
"package_name": "openimageio-2.3.15.0-r1.apk",
27+
"product": "openimageio",
28+
"version": "2.3.15",
29+
"other_products": ["gcc", "libheif"],
30+
},
31+
]

0 commit comments

Comments
 (0)