Skip to content

Commit

Permalink
feat(checker): New checker request - GNU emacs
Browse files Browse the repository at this point in the history
* feat(checker): New checker request - GNU emacs (#2921)

Signed-off-by: Bartlomiej Cieszkowski <bartlomiej.cieszkowski@intel.com>
Signed-off-by: Przemyslaw Romaniak <przemyslaw.romaniak@intel.com>
  • Loading branch information
bcieszko committed Apr 25, 2023
1 parent 95a48fd commit cb6fcfb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions cve_bin_tool/checkers/emacs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (C) 2023 Intel Corporation
# SPDX-License-Identifier: GPL-3.0-or-later


"""
CVE checker for emacs
https://www.cvedetails.com/vulnerability-list/vendor_id-72/product_id-741/GNU-Emacs.html
"""
from cve_bin_tool.checkers import Checker


class EmacsChecker(Checker):
CONTAINS_PATTERNS = [
r"GNU Emacs comes with ABSOLUTELY NO WARRANTY",
r"Why we developed GNU Emacs and the GNU system",
# Alternate optional contains patterns,
# see https://github.com/intel/cve-bin-tool/tree/main/cve_bin_tool/checkers#helper-script for more details
# r"Info-goto-emacs-command-node"
# r"Info-goto-emacs-key-command-node"
]
FILENAME_PATTERNS = [r"emacs"]
VERSION_PATTERNS = [
r"\$Id: GNU Emacs ([0-9]+\.[0-9]+)"
] # this version string is extracted from "$Id: GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-26, modified by Debian $"

VENDOR_PRODUCT = [("gnu", "emacs")]

0 comments on commit cb6fcfb

Please sign in to comment.