Skip to content

Commit c2e3beb

Browse files
authored
feat(checker): add libsixel checker (#5225)
Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent 3b24f01 commit c2e3beb

File tree

6 files changed

+48
-0
lines changed

6 files changed

+48
-0
lines changed

cve_bin_tool/checkers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@
222222
"librsync",
223223
"libsamplerate",
224224
"libseccomp",
225+
"libsixel",
225226
"libsndfile",
226227
"libsolv",
227228
"libsoup",

cve_bin_tool/checkers/libsixel.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 libsixel
7+
8+
https://www.cvedetails.com/product/48608/Libsixel-Project-Libsixel.html?vendor_id=19024
9+
10+
"""
11+
from __future__ import annotations
12+
13+
from cve_bin_tool.checkers import Checker
14+
15+
16+
class LibsixelChecker(Checker):
17+
CONTAINS_PATTERNS: list[str] = []
18+
FILENAME_PATTERNS: list[str] = []
19+
VERSION_PATTERNS = [r"sixel[a-z0-9 ]*([0-9]+\.[0-9]+\.[0-9]+)"]
20+
VENDOR_PRODUCT = [("libsixel_project", "libsixel")]
Binary file not shown.
Binary file not shown.
Binary file not shown.

test/test_data/libsixel.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright (C) 2025 Orange
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
mapping_test_data = [
5+
{"product": "libsixel", "version": "1.8.6", "version_strings": ["sixel 1.8.6"]}
6+
]
7+
package_test_data = [
8+
{
9+
"url": "http://rpmfind.net/linux/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/l/",
10+
"package_name": "libsixel-utils-1.10.5-2.fc43.aarch64.rpm",
11+
"product": "libsixel",
12+
"version": "1.10.5",
13+
},
14+
{
15+
"url": "http://ftp.debian.org/debian/pool/main/libs/libsixel/",
16+
"package_name": "libsixel-bin_1.8.6-2_s390x.deb",
17+
"product": "libsixel",
18+
"version": "1.8.6",
19+
},
20+
{
21+
"url": "https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/",
22+
"package_name": "libsixel-tools-1.10.3_git20221121-r2.apk",
23+
"product": "libsixel",
24+
"version": "1.10.3",
25+
"other_products": ["gcc"],
26+
},
27+
]

0 commit comments

Comments
 (0)