Skip to content

Commit d659f9e

Browse files
authored
feat(checkers): Add support for llvm (#4752)
1 parent ae78fb7 commit d659f9e

19 files changed

+141
-0
lines changed

cve_bin_tool/checkers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@
236236
"linux_kernel",
237237
"linuxptp",
238238
"lldpd",
239+
"llvm",
239240
"logrotate",
240241
"lrzip",
241242
"lua",

cve_bin_tool/checkers/llvm.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (C) 2025 Keysight Technologies
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
"""
5+
CVE checker for LLVM
6+
"""
7+
8+
from cve_bin_tool.checkers import Checker
9+
10+
11+
class LlvmChecker(Checker):
12+
CONTAINS_PATTERNS = []
13+
FILENAME_PATTTERN = []
14+
VERSION_PATTERNS = [
15+
r"LLVM version ([0-9]+\.[0-9]+\.[0-9]+)",
16+
r"/llvm-[a-z]+/([0-9]+\.[0-9]+\.[0-9]+)",
17+
]
18+
VENDOR_PRODUCT = [("llvm", "llvm")]
5.83 MB
Binary file not shown.
6.62 MB
Binary file not shown.
7.44 MB
Binary file not shown.
7.67 MB
Binary file not shown.
6.53 MB
Binary file not shown.
7 MB
Binary file not shown.
7.28 MB
Binary file not shown.
7.5 MB
Binary file not shown.

0 commit comments

Comments
 (0)