Skip to content

Commit d7c7d51

Browse files
authored
feat(checker): add poco checker (#5351)
Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent b1ce2e5 commit d7c7d51

File tree

6 files changed

+49
-0
lines changed

6 files changed

+49
-0
lines changed

cve_bin_tool/checkers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@
340340
"pixman",
341341
"pjsip",
342342
"png",
343+
"poco",
343344
"polarssl",
344345
"poppler",
345346
"postgresql",

cve_bin_tool/checkers/poco.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 poco
7+
8+
https://www.cvedetails.com/product/65385/Pocoproject-Poco.html?vendor_id=13266
9+
10+
"""
11+
from __future__ import annotations
12+
13+
from cve_bin_tool.checkers import Checker
14+
15+
16+
class PocoChecker(Checker):
17+
CONTAINS_PATTERNS: list[str] = []
18+
FILENAME_PATTERNS: list[str] = []
19+
VERSION_PATTERNS = [r"poco-([0-9]+\.[0-9]+\.[0-9]+)"]
20+
VENDOR_PRODUCT = [("pocoproject", "poco")]
487 KB
Binary file not shown.
9.47 KB
Binary file not shown.
400 KB
Binary file not shown.

test/test_data/poco.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright (C) 2025 Orange
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
mapping_test_data = [
5+
{"product": "poco", "version": "1.9.0", "version_strings": ["poco-1.9.0"]}
6+
]
7+
package_test_data = [
8+
{
9+
"url": "http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release/",
10+
"package_name": "poco-1.14.1-1-omv2590.aarch64.rpm",
11+
"product": "poco",
12+
"version": "1.14.1",
13+
},
14+
{
15+
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/packages/",
16+
"package_name": "poco_1.9.0-2_x86_64.ipk",
17+
"product": "poco",
18+
"version": "1.9.0",
19+
"other_products": ["libexpat", "pcre", "zlib"],
20+
},
21+
{
22+
"url": "https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/",
23+
"package_name": "poco-1.11.1-r0.apk",
24+
"product": "poco",
25+
"version": "1.11.1",
26+
"other_products": ["gcc", "libexpat", "sqlite", "zlib"],
27+
},
28+
]

0 commit comments

Comments
 (0)