Skip to content

Commit

Permalink
fix: update gawk pattern
Browse files Browse the repository at this point in the history
Update gawk pattern to avoid a false positive in gawk.info raised by
"GNU Awk 4.1.2, API: 1.1"

While at it, fix following typo: binutils -> gawk

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
  • Loading branch information
ffontaine committed Dec 17, 2023
1 parent 098a96f commit 025e087
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cve_bin_tool/checkers/gawk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later

"""
CVE checker for binutils
CVE checker for gawk
References:
http://savannah.gnu.org/projects/gawk/
Expand All @@ -17,5 +17,5 @@ class GawkChecker(Checker):
FILENAME_PATTERNS = [
r"gawk",
]
VERSION_PATTERNS = [r"GNU Awk (\d+\.\d+\.\d+)"]
VERSION_PATTERNS = [r"GNU Awk (\d+\.\d+\.\d+)\r?\n"]
VENDOR_PRODUCT = [("gnu", "gawk")]

0 comments on commit 025e087

Please sign in to comment.