Skip to content

Commit 27c5158

Browse files
ffontaineinosmeet
authored andcommitted
fix: update gawk pattern (intel#3607)
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 <[email protected]>
1 parent 550281f commit 27c5158

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cve_bin_tool/checkers/gawk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: GPL-3.0-or-later
33

44
"""
5-
CVE checker for binutils
5+
CVE checker for gawk
66
77
References:
88
http://savannah.gnu.org/projects/gawk/
@@ -17,5 +17,5 @@ class GawkChecker(Checker):
1717
FILENAME_PATTERNS = [
1818
r"gawk",
1919
]
20-
VERSION_PATTERNS = [r"GNU Awk (\d+\.\d+\.\d+)"]
20+
VERSION_PATTERNS = [r"GNU Awk (\d+\.\d+\.\d+)\r?\n"]
2121
VENDOR_PRODUCT = [("gnu", "gawk")]

0 commit comments

Comments
 (0)