Skip to content

Commit 6a45677

Browse files
authored
feat(checker): add aomedia checker (#5221)
Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent e6ec4f6 commit 6a45677

File tree

8 files changed

+58
-1
lines changed

8 files changed

+58
-1
lines changed

cve_bin_tool/checkers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"VendorProductPair",
2626
"accountsservice",
2727
"acpid",
28+
"aomedia",
2829
"apache_http_server",
2930
"apcupsd",
3031
"apparmor",

cve_bin_tool/checkers/aomedia.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 aomedia
7+
8+
https://www.cvedetails.com/product/94899/Aomedia-Aomedia.html?vendor_id=24569
9+
10+
"""
11+
from __future__ import annotations
12+
13+
from cve_bin_tool.checkers import Checker
14+
15+
16+
class AomediaChecker(Checker):
17+
CONTAINS_PATTERNS: list[str] = []
18+
FILENAME_PATTERNS: list[str] = []
19+
VERSION_PATTERNS = [r"AOMedia[a-zA-Z0-9 ]*([0-9]+\.[0-9]+\.[0-9]+)"]
20+
VENDOR_PRODUCT = [("aomedia", "aomedia")]
Binary file not shown.
Binary file not shown.
Binary file not shown.

test/test_data/aomedia.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": "aomedia", "version": "1.0.0", "version_strings": ["AOMedia 1.0.0"]}
6+
]
7+
package_test_data = [
8+
{
9+
"url": "http://rpmfind.net/linux/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/l/",
10+
"package_name": "libaom-3.12.0-1.fc43.aarch64.rpm",
11+
"product": "aomedia",
12+
"version": "3.12.0",
13+
},
14+
{
15+
"url": "http://ftp.debian.org/debian/pool/main/a/aom/",
16+
"package_name": "libaom0_1.0.0-3_amd64.deb",
17+
"product": "aomedia",
18+
"version": "1.0.0",
19+
},
20+
{
21+
"url": "https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/",
22+
"package_name": "aom-libs-3.5.0-r0.apk",
23+
"product": "aomedia",
24+
"version": "3.5.0",
25+
"other_products": ["gcc"],
26+
},
27+
]

test/test_data/firefox.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"product": "firefox",
1616
"version": "106.0.4",
1717
"other_products": [
18+
"aomedia",
1819
"libjpeg",
1920
"libjpeg-turbo",
2021
"libvpx",
@@ -28,6 +29,13 @@
2829
"package_name": "firefox_83.0-1_mipsel.deb",
2930
"product": "firefox",
3031
"version": "83.0",
31-
"other_products": ["libjpeg", "libjpeg-turbo", "lz4", "rust", "sqlite"],
32+
"other_products": [
33+
"aomedia",
34+
"libjpeg",
35+
"libjpeg-turbo",
36+
"lz4",
37+
"rust",
38+
"sqlite",
39+
],
3240
},
3341
]

test/test_data/thunderbird.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"product": "thunderbird",
1616
"version": "102.5.1",
1717
"other_products": [
18+
"aomedia",
1819
"libjpeg",
1920
"libjpeg-turbo",
2021
"libvpx",

0 commit comments

Comments
 (0)